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.crConstructors
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)
#