Returns all request headers
Returns all request headers as a JSON object.
Useful for debugging what headers are being sent by the client,
including auth tokens, proxy headers, and custom headers.
HTTP Method:
GET
Responses:
200 OK: Returns a JSON object containing all request headers.
Response
200 application/json
Response
Returns the client's IP address.
Extracts the client IP from request headers. Checks X-Forwarded-For first
(for proxied requests), then X-Real-IP as a fallback.
HTTP Method:
GET
Responses:
200 OK: Returns a JSON object containing the client’s origin IP.
Response
200 application/json
Response
Returns the client’s IP address
Handles OPTIONS requests to `/options`.
Responds with the allowed HTTP methods for this server in the Allow header.
The body of the response is empty.
HTTP Method:
OPTIONS
Responses:
204 No Content: Returns an empty body with theAllowheader set to
“GET, POST, PUT, PATCH, DELETE, OPTIONS, HEAD”.
Response
204
Response
No content, Allow header lists allowed methods
Handles PATCH requests to `/patch`.
Echoes back the request’s method, headers, and the parsed JSON body.
Expects a JSON request body.
HTTP Method:
PATCH
Request Body:
Payload: A generic JSON object.
Responses:
200 OK: Returns a JSON object containing method, headers, and parsed body.400 Bad Request: If the request body is not valid JSON.
Body
application/json
Body
Payload
Request payload wrapper for POST, PUT, PATCH, and DELETE handlers.
This newtype wraps a serde_json::Value to accept arbitrary JSON bodies
in requests that support request bodies.
Response
application/json
Response
Echoes request details
Body
Handles POST requests to `/post`.
Echoes back the request’s method, headers, and the parsed JSON body.
Expects a JSON request body.
HTTP Method:
POST
Request Body:
Payload: A generic JSON object.
Responses:
200 OK: Returns a JSON object containing method, headers, and parsed body.400 Bad Request: If the request body is not valid JSON.
Body
application/json
Body
Payload
Request payload wrapper for POST, PUT, PATCH, and DELETE handlers.
This newtype wraps a serde_json::Value to accept arbitrary JSON bodies
in requests that support request bodies.
Response
application/json
Response
Echoes request details