class HTTP::Request
- HTTP::Request
- Reference
- Object
Overview
An HTTP request.
It serves both to perform requests by an HTTP::Client and to
represent requests received by an HTTP::Server.
A request always holds an IO as a body.
When creating a request with a String or Bytes its body
will be a IO::Memory wrapping these, and the Content-Length
header will be set appropriately.
NOTE To use Request, you must explicitly import it with require "http/request"
Defined in:
route.crInstance Method Summary
- #handled!
- #handled? : Bool
-
#original_path : String
We mutate the request path as we traverse the routing tree so we need to be able to know the original path.
-
#original_path=(original_path : String)
We mutate the request path as we traverse the routing tree so we need to be able to know the original path.
-
#original_path? : String | Nil
We mutate the request path as we traverse the routing tree so we need to be able to know the original path.
Instance Method Detail
We mutate the request path as we traverse the routing tree so we need to be able to know the original path.
We mutate the request path as we traverse the routing tree so we need to be able to know the original path.
We mutate the request path as we traverse the routing tree so we need to be able to know the original path.