mirror of
https://github.com/edgurgel/httparrot
synced 2025-04-05 08:12:31 -04:00
Update README.md
[ci skip]
This commit is contained in:
parent
c25bd1c886
commit
12189c3312
1 changed files with 42 additions and 31 deletions
73
README.md
73
README.md
|
@ -1,35 +1,46 @@
|
|||
# HTTParrot [](https://travis-ci.org/edgurgel/httparrot)
|
||||
|
||||
httpbin.org clone
|
||||
http://httpbin.org clone
|
||||
|
||||
```
|
||||
ENDPOINTS
|
||||
## Endpoints
|
||||
|
||||
/ This page.
|
||||
/ip Returns Origin IP.
|
||||
/user-agent Returns user-agent.
|
||||
/headers Returns header dict.
|
||||
/get Returns GET data.
|
||||
/post Returns POST data.
|
||||
/put Returns PUT data.
|
||||
/patch Returns PATCH data.
|
||||
/delete Returns DELETE data
|
||||
/gzip Returns gzip-encoded data.
|
||||
/status/:code Returns given HTTP Status code.
|
||||
/response-headers?key=val Returns given response headers.
|
||||
/redirect/:n 302 Redirects n times.
|
||||
/redirect-to?url=foo 302 Redirects to the foo URL.
|
||||
/relative-redirect/:n 302 Relative redirects n times.
|
||||
/cookies Returns cookie data.
|
||||
/cookies/set?name=value Sets one or more simple cookies.
|
||||
/cookies/delete?name Deletes one or more simple cookies.
|
||||
/basic-auth/:user/:passwd Challenges HTTPBasic Auth.
|
||||
/hidden-basic-auth/:user/:passwd 404'd BasicAuth.
|
||||
/digest-auth/:qop/:user/:passwd Challenges HTTP Digest Auth.
|
||||
/stream/:n Streams n–100 lines.
|
||||
/delay/:n Delays responding for n–10 seconds.
|
||||
/html Renders an HTML Page.
|
||||
/robots.txt Returns some robots.txt rules.
|
||||
/deny Denied by robots.txt file.
|
||||
/cache Returns 200 unless an If-Modified-Since header is provided, when it returns a 304 Not Modified.
|
||||
```
|
||||
* / This page.
|
||||
* /ip Returns Origin IP.
|
||||
* /user-agent Returns user-agent.
|
||||
* /headers Returns header dict.
|
||||
* /get Returns GET data.
|
||||
* /post Returns POST data.
|
||||
* /put Returns PUT data.
|
||||
* /patch Returns PATCH data.
|
||||
* /delete Returns DELETE data
|
||||
* /gzip Returns gzip-encoded data.
|
||||
* /status/:code Returns given HTTP Status code.
|
||||
* /response-headers?key=val Returns given response headers.
|
||||
* /redirect/:n 302 Redirects n times.
|
||||
* /redirect-to?url=foo 302 Redirects to the foo URL.
|
||||
* /relative-redirect/:n 302 Relative redirects n times.
|
||||
* /cookies Returns cookie data.
|
||||
* /cookies/set?name=value Sets one or more simple cookies.
|
||||
* /cookies/delete?name Deletes one or more simple cookies.
|
||||
* /basic-auth/:user/:passwd Challenges HTTPBasic Auth.
|
||||
* /hidden-basic-auth/:user/:passwd 404'd BasicAuth.
|
||||
* /digest-auth/:qop/:user/:passwd Challenges HTTP Digest Auth.
|
||||
* /stream/:n Streams n–100 lines.
|
||||
* /delay/:n Delays responding for n–10 seconds.
|
||||
* /html Renders an HTML Page.
|
||||
* /robots.txt Returns some robots.txt rules.
|
||||
* /deny Denied by robots.txt file.
|
||||
* /cache Returns 200 unless an If-Modified-Since header is provided, when it returns a 304 Not Modified.
|
||||
|
||||
## TODO
|
||||
|
||||
* / This page.
|
||||
* /gzip Returns gzip-encoded data.
|
||||
* /response-headers?key=val Returns given response headers.
|
||||
* /redirect/:n 302 Redirects n times.
|
||||
* /relative-redirect/:n 302 Relative redirects n times.
|
||||
* /digest-auth/:qop/:user/:passwd Challenges HTTP Digest Auth.
|
||||
* /delay/:n Delays responding for n–10 seconds.
|
||||
* /robots.txt Returns some robots.txt rules.
|
||||
* /deny Denied by robots.txt file.
|
||||
* /cache Returns 200 unless an If-Modified-Since header is provided, when it returns a 304 Not Modified.
|
||||
|
|
Loading…
Add table
Reference in a new issue