Module: WebPipe::ConnSupport::Builder Private
- Defined in:
- lib/web_pipe/conn_support/builder.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
-
.call(env) ⇒ Object
private
rubocop:disable Metrics/MethodLength.
Class Method Details
.call(env) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
rubocop:disable Metrics/MethodLength
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/web_pipe/conn_support/builder.rb', line 12 def self.call(env) rr = Rack::Request.new(env) Conn::Ongoing.new( request: rr, env: env, scheme: rr.scheme.to_sym, request_method: rr.request_method.downcase.to_sym, host: rr.host, ip: rr.ip, port: rr.port, script_name: rr.script_name, path_info: rr.path_info, query_string: rr.query_string, request_body: rr.body, request_headers: Headers.extract(env) ) end |