bypass icon indicating copy to clipboard operation
bypass copied to clipboard

Bypass provides a quick way to create a custom plug that can be put in place instead of an actual HTTP server to return prebaked responses to client requests.

Results 30 bypass issues
Sort by recently updated
recently updated
newest added

This adds `Bypass.stub/2` as a version of `Bypass.expect/2` that does not require any requests to be made. ## Purpose I love how easy it is to spin up a dynamic...

I haven't seen anything related to this so I'm asking here. Are there any plans to support ranch 2.x, at the moment bypass is locked to `1.7.x`, I think it's...

This commit tries to improve two issues 1) A free port is obtained by setting the port value as zero and the OS will bind to a free port. We...

Hi everyone, and thanks for the great work! I'm having some troubles with bypass, since I have to work with paths in the form `/a/strange/path/dotted:strange.string.that.may:happen` The problem is that both...

bug

```elixir {{:badmatch, {:error, :eaddrinuse}}, [ {Bypass.Instance, :do_up, 2, [file: 'lib/bypass/instance.ex', line: 322]}, {Bypass.Instance, :init, 1, [file: 'lib/bypass/instance.ex', line: 34]}, {:gen_server, :init_it, 2, [file: 'gen_server.erl', line: 374]}, {:gen_server, :init_it, 6, [file:...

I noticed a flaky test failure with the reason `** (exit) shutdown`, and the following output logged: ``` ** (stop) exited in: GenServer.stop(:normal, :normal, :infinity) ** (EXIT) no process: the...

```elixir # inspired from https://hexdocs.pm/phoenix/testing.html test "GET /", %{conn: conn} do bypass = Bypass.open(port: 4204) conn = get(conn, "/welcome") assert html_response(conn, 200) =~ "Welcome to Phoenix!" Bypass.expect_once(bypass, "POST", "/an/external/service", fn...

help wanted

## Motivation Sometime can be a little annoying to add the `endpoint_url` to every test file or add it to the test case. As the endpoint url is something that...

Hi, I get an `Route error` on routes with decimal values like `/myroute/v1/0,10.0` ``` Request: GET /myroute/v1/0,10.0 ** (exit) an exception was raised: ** (RuntimeError) Route error (bypass) lib/bypass/plug.ex:24: Bypass.Plug.call/2...

help wanted