Sign inSign up

mayankfawkes/httptoy

By mayankfawkes

Updated over 3 years ago

A powerful HTTP Request & Response Service. Inspired by httpbin.org which is now outdated.

Image
0

619

mayankfawkes/httptoy repository overview

httptoy 🎉

A powerful HTTP Request & Response Service. Inspired by httpbin.org / Github Which is now outdated.

Features

  • Light Weight & Easy to setup
  • Docker image available
  • One command installation

Run locally

docker pull mayankfawkes/httptoy
docker run -p 8000:8000 mayankfawkes/httptoy

API Endpoints

Under {} of url path are path parameters, if invalid parameters are found then they will be set to default values, all ints have 0 as default value if invalid parameter is passed.

Methods
GET /get
POST /post
DELETE /delete
PATCH /patch
PUT /put
Auth
GET /basic/{username}/{password}
GET /basic
GET /bearer
ParameterTypeDescription
usernamestringRequired Username for auth
passwordstringRequired Password for auth
Compression
GET /deflate
GET /brotli
GET /zlib
GET /gzip
GET /utf8
Cookies
GET /cookies
GET /cookies/set/{key}/{value}
GET /cookies/delete/{key}
ParameterTypeDescription
keystringRequired Cookie name
valuestringRequired Cookie value
Images
GET /image
GET /image/png
GET /image/jpeg
GET /image/svg
GET /image/webp
Redirect
GET /redirect/{times}
GET /redirect-delay/{delay}/{times}
ParameterTypeDescription
timesintRequired Number of time redirect
delayintRequired Delay in redirect in seconds
Request Inspection
GET /headers
GET /header/{header_name}
GET /ip
ParameterTypeDescription
header_namestringRequired Name of the request header
Response
GET /bytes/{count}
GET /base64en/{data}
GET /base64de/{data}

GET /delay/{seconds}
POST /delay/{seconds}
DELETE /delay/{seconds}
PUT /delay/{seconds}
PATCH /delay/{seconds}

GET /uuid
GET /body/{data}
GET /text
GET /json
GET /xml
GET /yaml
GET /html

ParameterTypeDescription
countintRequired Number of random bytes return
datastringRequired String data
secondsintRequired Duration in seconds
Response Status
GET /status/{code}
POST /status/{code}
DELETE /status/{code}
PUT /status/{code}
PATCH /status/{code}
ParameterTypeDescription
codeintRequired Valid HTTP Status Codes

Tag summary

Content type

Image

Digest

sha256:1c4add2a3

Size

8 MB

Last updated

over 3 years ago

docker pull mayankfawkes/httptoy