Cryload::Timeouts - cryload 6.0.0

# struct Cryload::Timeouts

- Cryload::Timeouts
- Struct
- Value
- Object

##
Overview

Socket-level deadlines. v5 set only connect and read, so a peer that accepted the request and then stopped reading could block a worker forever.

##
Defined in:

cryload/http_client.cr

##
Constructors

- .new(timeout : Time::Span | Nil = nil, request_timeout : Time::Span | Nil = nil)

##
Instance Method Summary

- #apply(client : HTTP::Client) : Nil
- #deadline_from(start : Time::Instant) : Deadline | Nil

  Absolute deadline for one request, or nil when --request-timeout is unset.

- #request_timeout : Time::Span | Nil
- #timeout : Time::Span | Nil

##
Constructor Detail

def self.new(timeout : Time::Span | Nil = nil, request_timeout : Time::Span | Nil = nil) #

##
Instance Method Detail

def apply(client : HTTP::Client) : Nil #
def deadline_from(start : Time::Instant) : Deadline | Nil #

Absolute deadline for one request, or nil when --request-timeout is unset.

def request_timeout : Time::Span | Nil #
def timeout : Time::Span | Nil #