ri > Puma::Client

= Puma::Client < Object

------------------------------------------------------------------------
= Includes:
Puma::Const (from /home/chedong/.local/share/rdoc)

------------------------------------------------------------------------
= Extended by:
Forwardable (from /home/chedong/.local/share/rdoc)

(from /home/chedong/.local/share/rdoc)
------------------------------------------------------------------------
An instance of this class represents a unique request from a client. For
example, this could be a web request from a browser or from CURL.

An instance of Puma::Client can be used as if it were an IO object by
the reactor. The reactor is expected to call #to_io on any non-IO
objects it polls. For example, nio4r internally calls IO::try_convert
(which may call #to_io) when a new socket is registered.

Instances of this class are responsible for knowing if the header and
body are fully buffered via the try_to_finish method. They can be used
to "time out" a response via the timeout_at reader.
------------------------------------------------------------------------
= Constants:

EmptyBody:
  The object used for a request with no body. All requests with no body
  share this one object since it has no state.


= Class methods:

  new

= Instance methods:

  body
  call
  can_close?
  close
  eagerly_finish
  env
  expect_proxy_proto=
  finish
  hijacked
  in_data_phase
  inspect
  io
  io_ok?
  listener
  peerip
  ready
  remote_addr_header
  reset
  set_timeout
  tempfile
  timeout
  timeout!
  timeout_at
  to_io
  try_to_finish
  try_to_parse_proxy_protocol
  write_error

= Attributes:

  attr_accessor listener
  attr_accessor remote_addr_header
  attr_reader body
  attr_reader env
  attr_reader hijacked
  attr_reader io
  attr_reader ready
  attr_reader tempfile
  attr_reader timeout_at
  attr_reader to_io
  attr_writer peerip

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-29 15:36 @216.73.217.111
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!