flux v0.1.1 Flux.Conn

Link to this section Summary

Link to this section Types

Link to this type charset()
charset() :: binary()
Link to this type coding()
coding() :: binary()
Link to this type language()
language() :: binary()
Link to this type mimetype()
mimetype() :: binary()
Link to this type qvalue()
qvalue() :: float()
Link to this type t()
t() :: %Flux.Conn{
  accept: %{optional(mimetype()) => qvalue()},
  accept_charset: %{optional(charset()) => qvalue()},
  accept_encoding: %{optional(coding()) => qvalue()},
  accept_language: %{optional(language()) => qvalue()},
  host: binary(),
  keep_alive: boolean(),
  method: atom(),
  opts: keyword(),
  parent: pid(),
  peer: {binary(), integer()},
  port: integer(),
  query: term(),
  ref: identifier(),
  remote_ip: binary(),
  req_body: iodata(),
  req_headers: keyword(),
  request: iodata(),
  resp_body: iodata(),
  resp_headers: [{iodata(), iodata()}],
  resp_type: atom(),
  socket: pid(),
  status: integer(),
  transport: atom(),
  upgrade: atom(),
  uri: iodata(),
  version: atom()
}

The state of a connection.

Link to this section Functions

Link to this function put_resp_body(conn, body)
Link to this function put_resp_header(conn, header)
Link to this function put_resp_headers(conn, headers)
Link to this function put_status(conn, status)