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:
runcobo/extensions/http.crruncobo/extensions/request.cr
runcobo/request_input.cr
Instance Method Summary
- #base_url(*args, **options)
- #base_url(*args, **options, &)
- #host(*args, **options)
- #host(*args, **options, &)
- #port(*args, **options)
- #port(*args, **options, &)
- #protocol(*args, **options)
- #protocol(*args, **options, &)
- #remote_ip(*args, **options)
- #remote_ip(*args, **options, &)
- #request_id : String | Nil
- #request_id=(request_id : String | Nil)
- #route_params : Hash(String, String)
- #route_params=(route_params : Hash(String, String))
- #runcobo_input : Runcobo::RequestInput
- #scheme(*args, **options)
- #scheme(*args, **options, &)
- #ssl?(*args, **options)
- #ssl?(*args, **options, &)