Sippet v0.2.5 Sippet.Transactions.Server

Summary

Functions

Create a server transaction identifier from an incoming request or an outgoing response. If they are related, they will be equal

Create a server transaction identifier explicitly

Types

branch()
branch() :: binary
dport()
dport() :: integer
host()
host() :: binary
method()
method() :: atom | binary
reason()
reason() :: atom | any
request()
request() :: %Sippet.Message{body: term, headers: term, start_line: %Sippet.Message.RequestLine{method: term, request_uri: term, version: term}, target: term}
response()
response() :: %Sippet.Message{body: term, headers: term, start_line: %Sippet.Message.StatusLine{reason_phrase: term, status_code: term, version: term}, target: term}
t()
t() :: %Sippet.Transactions.Server{branch: branch, method: method, sent_by: {host, dport}}
transaction()
transaction() :: t | GenServer.server

Functions

new(incoming_request)
new(request | response) :: t

Create a server transaction identifier from an incoming request or an outgoing response. If they are related, they will be equal.

new(branch, method, sent_by)
new(branch, method, {host, dport}) :: t

Create a server transaction identifier explicitly.