Skip to content

Commit 5d94a37

Browse files
authored
Update README with details flag info
1 parent 90cae92 commit 5d94a37

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55

66
`rh` is a CLI tool for creating an ephemeral endpoint for testing and inspecting requests from your application or webhook.
77

8-
<img width="741" alt="rh" src="https://user-images.githubusercontent.com/100900/120058797-f9d90780-bfe8-11eb-9b1d-f65a27773600.png">
8+
<img width="788" alt="Request Hole CLI" src="https://user-images.githubusercontent.com/100900/120265767-63048900-c23c-11eb-9a20-079ab9822767.png">
9+
910

1011
## Installation
1112
### Homebrew
@@ -42,11 +43,24 @@ Available Commands:
4243
4344
Flags:
4445
-a, --address string sets the address for the endpoint (default "localhost")
46+
--details shows header details in the request
4547
-h, --help help for rh
4648
-p, --port int sets the port for the endpoint (default 8080)
4749
-r, --response_code int sets the response code (default 200)
4850
4951
Use "rh [command] --help" for more information about a command.
5052
```
5153

54+
### Creating an HTTP endpoint
55+
To create an http endpoint with default settings (port 8080, return status code 200):
56+
```
57+
$ rh http
58+
```
59+
<img width="785" alt="Request Hole CLI http" src="https://user-images.githubusercontent.com/100900/120266278-474db280-c23d-11eb-9e1f-4d73d18522d5.png">
5260

61+
### Show header details
62+
This option shows all the header details in the incoming request.
63+
```
64+
$ rh http --details
65+
```
66+
<img width="785" alt="Request Hole CLI details" src="https://user-images.githubusercontent.com/100900/120266674-1d48c000-c23e-11eb-8107-50db997ac3cc.png">

0 commit comments

Comments
 (0)