# `Julep.Request`
[🔗](https://github.com/RiverFinancial/julep/blob/v0.1.0-rc.1/lib/julep/request.ex#L1)

A request a client can shape before Julep sends it.

Julep passes one to the optional `c: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.

# `t`

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

---

*Consult [api-reference.md](api-reference.md) for complete listing*
