class Cryload::Request

Overview

Represents an HTTP request.

Defined in:

cryload/request.cr

Constant Summary

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

Constructors

Instance Method Summary

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 #