Simple request object implementation.
Simple request object implementation.
This is not supposed to be (or become) a web framework. Just a convenient fallback that could be used without any extra dependencies.
the request method (i.e. GET, POST, PUT ...)
the request path (without query string)
the query parameters
the request headers
the request body (makes only sense for certain methods)
Simple response object implementation.
Simple response object implementation.
This is not supposed to be (or become) a web framework. Just a convenient fallback that could be used without any extra dependencies.
the response status code (i.e. 200, 201, ...)
the response headers
the response body