Cryload::Request - cryload 5.0.0

# class Cryload::Request

- Cryload::Request
- Reference
- Object

##
Overview

Represents an HTTP request.

##
Defined in:

cryload/request.cr

##
Constant Summary

REDIRECT_STATUS_CODES = `{301, 302, 303, 307, 308}`

##
Constructors

- .new(http_client, uri, method : String, headers : HTTP::Headers, body : String | Nil, timeout_seconds : Int32 | Nil = nil, insecure : Bool = false, follow_redirects : Bool = false, proxy : URI | Nil = nil)

##
Instance Method Summary

- #ok?
- #response_bytes : Int64
- #status_code : Int32
- #time_taken

##
Constructor Detail

def self.new(http_client, uri, method : String, headers : HTTP::Headers, body : String | Nil, timeout_seconds : Int32 | Nil = nil, insecure : Bool = false, follow_redirects : Bool = false, proxy : URI | Nil = nil) #

##
Instance Method Detail

def ok? #
def response_bytes : Int64 #
def status_code : Int32 #
def time_taken #