Cryload::RequestSpec - cryload 6.0.0

# struct Cryload::RequestSpec

- Cryload::RequestSpec
- Struct
- Value
- Object

##
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

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

##
Instance Method Summary

- #body : String | Nil
- #follow_redirects? : Bool
- #insecure? : Bool
- #method : String
- #proxy : URI | Nil
- #timeouts : Timeouts

##
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 #