Module: WebPipe::ConnSupport::Types
- Included in:
- WebPipe::Conn
- Defined in:
- lib/web_pipe/conn_support/types.rb
Overview
Types used in the WebPipe::Conn struct.
The implementation self-describes them, but you can look at the WebPipe::Conn attributes for documentation.
Constant Summary collapse
- Env =
Strict::Hash
- Request =
Instance(Rack::Request)
- Scheme =
Strict::Symbol.enum(:http, :https)
- Method =
Strict::Symbol.enum( :get, :head, :post, :put, :delete, :connect, :options, :trace, :patch )
- Host =
Strict::String
- Ip =
Strict::String.optional
- Port =
Strict::Integer
- ScriptName =
Strict::String
- PathInfo =
Strict::String
- QueryString =
Strict::String
- RequestBody =
Interface(:gets, :each, :read, :rewind)
- Status =
Strict::Integer .default(200) .constrained(gteq: 100, lteq: 599)
- ResponseBody =
Interface(:each).default { [''] }
- Headers =
Strict::Hash .map(Strict::String, Strict::String) .default { {} }
- Bag =
Strict::Hash .map(Strict::Symbol, Strict::Any) .default { {} }