File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 5
5
6
6
` rh ` is a CLI tool for creating an ephemeral endpoint for testing and inspecting requests from your application or webhook.
7
7
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
+
9
10
10
11
## Installation
11
12
### Homebrew
@@ -42,11 +43,24 @@ Available Commands:
42
43
43
44
Flags:
44
45
-a, --address string sets the address for the endpoint (default "localhost")
46
+ --details shows header details in the request
45
47
-h, --help help for rh
46
48
-p, --port int sets the port for the endpoint (default 8080)
47
49
-r, --response_code int sets the response code (default 200)
48
50
49
51
Use "rh [command] --help" for more information about a command.
50
52
```
51
53
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 " >
52
60
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 " >
You can’t perform that action at this time.
0 commit comments