struct Cryload::RequestSpec

Overview

Everything about a request that is identical for every worker, built once and shared read-only. Keeps the hot path free of a dozen forwarded arguments and makes what is shared across threads explicit.

Defined in:

cryload/request.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(method : String, body : String | Nil = nil, timeouts : Timeouts = Timeouts.new, insecure : Bool = false, follow_redirects : Bool = false, proxy : URI | Nil = nil) #

Instance Method Detail

def body : String | Nil #

def follow_redirects? : Bool #

def insecure? : Bool #

def method : String #

def proxy : URI | Nil #

def timeouts : Timeouts #