Crate parfait
Source - delete
- Defines a DELETE endpoint for removing data elements from a JSON file or any text-based content.
- get
- Defines a GET endpoint.
- post
- Defines a POST endpoint.
- put
- Defines a PUT endpoint.
- route
- Support for routing with parameter extraction.
- AuthMiddleware
- JSON Web Token (JWT) authentication middleware.
- Handler
- Represents a handler for processing HTTP requests.
- LoggingMiddleware
- Basic logging middleware example.
- ContentType
- Enum to represent the content type for GET macro
- Middleware
- Middleware support for pre and post request processing.
- generate_json_response
- Converts a
serde_json::Value object into a JSON string. - get_cookie
- Extracts a cookie value from an HTTP request.
- handle_client
- Asynchronously handles an incoming TCP stream containing an HTTP request.
- handle_client_with_middleware
- Integrating middleware into the request handling process.
- parse_json
- Parses a JSON string into a
serde_json::Value object. - run
- run_with_middleware
- Modified server run function that accepts middleware.
- serve_static
- Support for static file serving.