riverside v1.2.5 Riverside.PeerAddress

Represents a peer's address

This data has following three field

  • address
  • port
  • x_forwarded_for

Link to this section Summary

Functions

Pick a peer's address from a cowboy request

Link to this section Types

Link to this type

t()
t() :: %Riverside.PeerAddress{
  address: String.t(),
  port: :inet.port_number(),
  x_forwarded_for: String.t()
}

Link to this section Functions

Link to this function

gather(req)
gather(:cowboy_req.req()) :: t()

Pick a peer's address from a cowboy request.