# Instalando Bypass

Como qualquer outra biblioteca elixir, *bypass* é facilmente instalado. Basta adicionar ele no mix.exs e rodar o comando de dependências

<pre class="language-elixir" data-title="mix.exs" data-line-numbers><code class="lang-elixir">defp deps do
  [
    {:tesla, "~> 1.4"},
<strong>    {:bypass, "~> 2.1"}
</strong>  ]
end
</code></pre>

```
mix deps.get
```

{% code fullWidth="false" %}

```sh
> mix deps.get                                     
Resolving Hex dependencies...
Resolution completed in 0.22s
New:
  bypass 2.1.0
  cowboy 2.12.0
  cowboy_telemetry 0.4.0
  cowlib 2.13.0
  plug 1.15.3
  plug_cowboy 2.7.1
  plug_crypto 2.0.0
  ranch 1.8.0
  telemetry 1.2.1
Unchanged:
  mime 2.0.5
  tesla 1.8.0
* Getting bypass (Hex package)
* Getting plug (Hex package)
* Getting plug_cowboy (Hex package)
* Getting ranch (Hex package)
* Getting cowboy (Hex package)
* Getting cowboy_telemetry (Hex package)
* Getting telemetry (Hex package)
* Getting cowlib (Hex package)
* Getting plug_crypto (Hex package)
You have added/upgraded packages you could sponsor, run `mix hex.sponsor` to learn more
```

{% endcode %}

Algumas outras bibliotecas vieram junto para conseguir lidar com requisições HTTP. Mas não vamos nos preocupar com isso.

A ideia é cada vez que rodarmos testes que precisam fazer requisições externas, tenhamos um serviço pronto para receber e trazer para nós a resposta que esperamos. Igual um serviço como nossa aplicação.

Vamos ver como fazer isso a seguir.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://consumindo-apis-com-elixir.cafecomelixir.com.br/construindo-um-cliente-usando-tesla/instalando-bypass.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
