class NGHTTP::IntConfig
- NGHTTP::IntConfig
- NGHTTP::Config
- Reference
- Object
Defined in:
nghttp/int_config.crInstance Method Summary
-
#discard_cache : Bool
If a request generates an error, set this flag.
-
#discard_cache=(v : Bool)
If a request generates an error, set this flag.
-
#discard_cache? : Bool | Nil
If a request generates an error, set this flag.
-
#from_cache : Bool
request will be read from teh cache
-
#from_cache=(v : Bool)
request will be read from teh cache
-
#from_cache? : Bool | Nil
request will be read from teh cache
-
#origin : String
The hostname of the destination web server.
-
#origin=(v : String)
The hostname of the destination web server.
-
#origin? : String | Nil
The hostname of the destination web server.
-
#port : Int32
The port of the destination web server.
-
#port=(v : Int32)
The port of the destination web server.
-
#port? : Int32 | Nil
The port of the destination web server.
-
#proxy : String
Set by a handler.
-
#proxy=(v : String)
Set by a handler.
-
#proxy? : String | Nil
Set by a handler.
-
#redirect : Bool
Is this request generated from a redirect?
-
#redirect=(v : Bool)
Is this request generated from a redirect?
-
#redirect? : Bool | Nil
Is this request generated from a redirect?
-
#redirect_body_io : IO
the body used for the redirect only HTTP 307 is designed to possibly have the body set
-
#redirect_body_io=(v : IO | Nil)
allows for setting redirect_body_io to nil e.g.
-
#redirect_body_io? : IO | Nil
the body used for the redirect only HTTP 307 is designed to possibly have the body set
-
#redirect_count : Int32
The number of redirections we have seen thus far.
-
#redirect_count=(v : Int32)
The number of redirections we have seen thus far.
-
#redirect_count? : Int32 | Nil
The number of redirections we have seen thus far.
-
#redirect_method : String
The method used for the redirect.
-
#redirect_method=(v : String)
The method used for the redirect.
-
#redirect_method? : String | Nil
The method used for the redirect.
-
#redirect_url : String
The new url.
-
#redirect_url=(v : String)
The new url.
-
#redirect_url? : String | Nil
The new url.
-
#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.
-
#to_cache : Bool
request is being fetched from the network and written to the cache
-
#to_cache=(v : Bool)
request is being fetched from the network and written to the cache
-
#to_cache? : Bool | Nil
request is being fetched from the network and written to the cache
-
#transport : Transport
set by the ConnectionManager, or by a handler designed to provide a custom response
-
#transport=(v : Transport)
set by the ConnectionManager, or by a handler designed to provide a custom response
-
#transport? : Transport | Nil
set by the ConnectionManager, or by a handler designed to provide a custom response
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
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.
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.
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.
Set by a handler. used instead of env.config.proxy because we use direct:/// as a url when env.config.proxy isn't set.
Set by a handler. used instead of env.config.proxy because we use direct:/// as a url when env.config.proxy isn't set.
Set by a handler. used instead of env.config.proxy because we use direct:/// as a url when env.config.proxy isn't set.
the body used for the redirect only HTTP 307 is designed to possibly have the body set
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
the body used for the redirect only HTTP 307 is designed to possibly have the body set
The method used for the redirect. Only HTTP 307 is designed to possibly (re)-use the post method.
The method used for the redirect. Only HTTP 307 is designed to possibly (re)-use the post method.
The method used for the redirect. Only HTTP 307 is designed to possibly (re)-use the post method.
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.
set by the ConnectionManager, or by a handler designed to provide a custom response
set by the ConnectionManager, or by a handler designed to provide a custom response
set by the ConnectionManager, or by a handler designed to provide a custom response