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.
Echoes back the request’s method, headers, and the parsed JSON body.
Expects a JSON request body.
PATCHPayload: A generic JSON object.200 OK: Returns a JSON object containing method, headers, and parsed body.400 Bad Request: If the request body is not valid JSON.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.
Echoes request details
Echoes back the request’s method, headers, and the parsed JSON body.
Expects a JSON request body.
POSTPayload: A generic JSON object.200 OK: Returns a JSON object containing method, headers, and parsed body.400 Bad Request: If the request body is not valid JSON.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.
Echoes request details
Echoes back the request’s method, headers, and the parsed JSON body.
Expects a JSON request body.
PUTPayload: A generic JSON object.200 OK: Returns a JSON object containing method, headers, and parsed body.400 Bad Request: If the request body is not valid JSON.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.
Echoes request details
This handler allows testing of how a client handles different HTTP status codes.
It accepts any HTTP method.
code: The HTTP status code to return (e.g., 200, 404, 500).code path parameter.code is provided (e.g., not a number or out of valid range),400 Bad Request.>= 0
Returns the specified status code
Extracts and returns the User-Agent header value. Useful for testing
what user agent string your client is sending.
GET200 OK: Returns a JSON object containing the User-Agent string.Returns the User-Agent header