class NGHTTP::IntConfig

Defined in:

nghttp/int_config.cr

Instance Method Summary

Instance methods inherited from class NGHTTP::Config

_cfg : Hash(String, Bool | IO | Int32 | NGHTTP::Transport | Range(Int32, Int32) | String | Time::Span | {String, String} | Nil) _cfg, basic_auth : Tuple(String, String) basic_auth, basic_auth=(v : Tuple(String, String)) basic_auth=, basic_auth? : Tuple(String, String) | Nil basic_auth?, cache : Bool cache, cache=(v : Bool) cache=, cache? : Bool | Nil cache?, cache_expires : Time::Span cache_expires, cache_expires=(v : Time::Span) cache_expires=, cache_expires? : Time::Span | Nil cache_expires?, cache_key : String cache_key, cache_key=(v : String) cache_key=, cache_key? : String | Nil cache_key?, cache_statuses : Array(Int32) cache_statuses, cache_statuses=(v : Array(Int32)) cache_statuses=, cache_statuses? : Array(Int32) | Nil cache_statuses?, connect_timeout : Time::Span connect_timeout, connect_timeout=(v : Time::Span) connect_timeout=, connect_timeout? : Time::Span | Nil connect_timeout?, connections_per_host : Int32 connections_per_host, connections_per_host=(v : Int32) connections_per_host=, connections_per_host? : Int32 | Nil connections_per_host?, debug_connect : Bool debug_connect, debug_connect=(v : Bool) debug_connect=, debug_connect? : Bool | Nil debug_connect?, debug_file : IO::FileDescriptor debug_file, debug_file=(v : IO::FileDescriptor) debug_file=, debug_file? : IO::FileDescriptor | Nil debug_file?, dns_timeout : Time::Span dns_timeout, dns_timeout=(v : Time::Span) dns_timeout=, dns_timeout? : Time::Span | Nil dns_timeout?, max_redirects : Int32 max_redirects, max_redirects=(v : Int32) max_redirects=, max_redirects? : Int32 | Nil max_redirects?, merge!(x : Config) merge!, offset : Range(Int32, Int32) | Int32 offset, offset=(v : Range(Int32, Int32) | Int32) offset=, offset? : Range(Int32, Int32) | Int32 | Nil offset?, proxy : String proxy, proxy=(v : String) proxy=, proxy? : String | Nil proxy?, read_timeout : Time::Span read_timeout, read_timeout=(v : Time::Span) read_timeout=, read_timeout? : Time::Span | Nil read_timeout?, tls : OpenSSL::SSL::Context::Client tls, tls=(v : OpenSSL::SSL::Context::Client) tls=, tls? : OpenSSL::SSL::Context::Client | Nil tls?, tries : Int32 tries, tries=(v : Int32) tries=, tries? : Int32 | Nil tries?, verify : Bool verify, verify=(v : Bool) verify=, verify? : Bool | Nil verify?, wait : Time::Span wait, wait=(v : Time::Span) wait=, wait? : Time::Span | Nil wait?

Macros inherited from class NGHTTP::Config

hk(t) hk, hk_nilable(t) hk_nilable

Instance Method Detail

def discard_cache : Bool #

If a request generates an error, set this flag. We might not have a full or accurate response to cache, and we'd rather discard and refetch.


[View source]
def discard_cache=(v : Bool) #

If a request generates an error, set this flag. We might not have a full or accurate response to cache, and we'd rather discard and refetch.


[View source]
def discard_cache? : Bool | Nil #

If a request generates an error, set this flag. We might not have a full or accurate response to cache, and we'd rather discard and refetch.


[View source]
def from_cache : Bool #

request will be read from teh cache


[View source]
def from_cache=(v : Bool) #

request will be read from teh cache


[View source]
def from_cache? : Bool | Nil #

request will be read from teh cache


[View source]
def origin : String #

The hostname of the destination web server.


[View source]
def origin=(v : String) #

The hostname of the destination web server.


[View source]
def origin? : String | Nil #

The hostname of the destination web server.


[View source]
def port : Int32 #

The port of the destination web server.


[View source]
def port=(v : Int32) #

The port of the destination web server.


[View source]
def port? : Int32 | Nil #

The port of the destination web server.


[View source]
def proxy : String #

Set by a handler. used instead of env.config.proxy because we use direct:/// as a url when env.config.proxy isn't set.


[View source]
def proxy=(v : String) #

Set by a handler. used instead of env.config.proxy because we use direct:/// as a url when env.config.proxy isn't set.


[View source]
def proxy? : String | Nil #

Set by a handler. used instead of env.config.proxy because we use direct:/// as a url when env.config.proxy isn't set.


[View source]
def redirect : Bool #

Is this request generated from a redirect?


[View source]
def redirect=(v : Bool) #

Is this request generated from a redirect?


[View source]
def redirect? : Bool | Nil #

Is this request generated from a redirect?


[View source]
def redirect_body_io : IO #

the body used for the redirect only HTTP 307 is designed to possibly have the body set


[View source]
def redirect_body_io=(v : IO | Nil) #

allows for setting redirect_body_io to nil e.g. if we go 307>302>200 post body must be explicitly removed after the 302 response


[View source]
def redirect_body_io? : IO | Nil #

the body used for the redirect only HTTP 307 is designed to possibly have the body set


[View source]
def redirect_count : Int32 #

The number of redirections we have seen thus far.


[View source]
def redirect_count=(v : Int32) #

The number of redirections we have seen thus far.


[View source]
def redirect_count? : Int32 | Nil #

The number of redirections we have seen thus far.


[View source]
def redirect_method : String #

The method used for the redirect. Only HTTP 307 is designed to possibly (re)-use the post method.


[View source]
def redirect_method=(v : String) #

The method used for the redirect. Only HTTP 307 is designed to possibly (re)-use the post method.


[View source]
def redirect_method? : String | Nil #

The method used for the redirect. Only HTTP 307 is designed to possibly (re)-use the post method.


[View source]
def redirect_url : String #

The new url.


[View source]
def redirect_url=(v : String) #

The new url.


[View source]
def redirect_url? : String | Nil #

The new url.


[View source]
def reset #

if a value from hk above is not reset in this method, it should be explicitly cleared in a handle_request method of a handler. Otherwise, previous requests could taint redirected requests.


[View source]
def to_cache : Bool #

request is being fetched from the network and written to the cache


[View source]
def to_cache=(v : Bool) #

request is being fetched from the network and written to the cache


[View source]
def to_cache? : Bool | Nil #

request is being fetched from the network and written to the cache


[View source]
def transport : Transport #

set by the ConnectionManager, or by a handler designed to provide a custom response


[View source]
def transport=(v : Transport) #

set by the ConnectionManager, or by a handler designed to provide a custom response


[View source]
def transport? : Transport | Nil #

set by the ConnectionManager, or by a handler designed to provide a custom response


[View source]