Julep.Request (Julep v0.1.0-rc.1)

Copy Markdown View Source

A request a client can shape before Julep sends it.

Julep passes one to the optional Julep.prepare/3 callback before every connection attempt: for the WebSocket upgrade (:upgrade) and, when tunnelling through a proxy, for the CONNECT request (:connect).

The upgrade request starts out with the path and query of the :url option. Additions to headers, such as a signature that has to be fresh on every attempt, or a new query are passed through.

Only the headers of a CONNECT request are used.

Summary

Types

t()

@type t() :: %Julep.Request{
  headers: [{String.t(), String.t()}],
  path: String.t(),
  query: String.t() | nil
}