Run this notebook

Use Livebook to open this notebook and explore new ideas.

It is easy to get started, on your machine or the cloud.

Click below to open and run it in your Livebook at .

(or change your Livebook location)

# Fiddler demo ```elixir Mix.install([ {:ex_fiddler, github: "chgeuer/ex_fiddler", force: true}, {:nimble_options, "~> 1.1"}, {:req, "~> 0.5.7"} ], force: true) ``` ## Integration with Req This demo assumes you have [Fiddler](https://www.telerik.com/download/fiddler) running on your Windows computer. You can run this both on the Windows **and** on the WSL/Linux side, it *should* just work. ```elixir url = "https://jsonplaceholder.typicode.com/posts/1" ``` ```elixir %Req.Response{body: body} = Req.new() |> Fiddler.attach() |> Req.merge(method: :get, url: url) |> Req.request!() body ``` ## Integration with :httpc ```elixir Fiddler.inject_fiddler_httpc() {:ok, {{_,200,_}, _headers, body}} = :httpc.request(:get, {String.to_charlist(url), []}, [], [{:body_format, :binary} ]) body |> Jason.decode!() ```
See source

Have you already installed Livebook?

If you already installed Livebook, you can configure the default Livebook location where you want to open notebooks.
Livebook up Checking status We can't reach this Livebook (but we saved your preference anyway)
Run notebook

Not yet? Install Livebook in just a minute

Livebook is open source, free, and ready to run anywhere.

Run on your machine

with Livebook Desktop

Run in the cloud

on select platforms

To run on Linux, Docker, embedded devices, or Elixir’s Mix, check our README.

PLATINUM SPONSORS
SPONSORS
Code navigation with go to definition of modules and functions Read More ×