class Puma::Client

def peerip

Experimental RBS support (using type sampling data from the type_fusion project).

def peerip: () -> String

This signature was generated using 1 sample from 1 application.

def peerip
  return @peerip if @peerip
  if @remote_addr_header
    hdr = (@env[@remote_addr_header] || @io.peeraddr.last).split(/[\s,]/).first
    @peerip = hdr
    return hdr
  end
  @peerip ||= @io.peeraddr.last
end