class Halite::Request
- Halite::Request
- Reference
- Object
Defined in:
halite/request.crConstant Summary
-
METHODS =
["GET", "PUT", "POST", "DELETE", "HEAD", "PATCH", "OPTIONS"] of ::String
-
Allowed methods
-
SCHEMES =
["http", "https"] of ::String
-
Allowed schemes
-
USER_AGENT =
"Halite/#{Halite::VERSION}"
-
Request user-agent by default
Constructors
Instance Method Summary
-
#body : String
The payload of request
-
#domain
@return
URI
with the scheme, user, password, port and host combined -
#full_path
@return
String
with the path, query and fragment combined -
#headers : HTTP::Headers
The headers of request
-
#redirect(uri : String, verb = @verb)
Returns new Request with updated uri
-
#scheme : String
The scheme name of request
-
#uri : URI
The uri of request
-
#verb : String
The verb name of request
Constructor Detail
def self.new(verb : String, uri : URI, headers : HTTP::Headers = HTTP::Headers.new, body : String = "")
#