We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f0c534 commit 380212fCopy full SHA for 380212f
lib/mint/http2/frame.ex
@@ -472,4 +472,7 @@ defmodule Mint.HTTP2.Frame do
472
defp humanize_error_code(unquote(code)), do: unquote(human_code)
473
defp dehumanize_error_code(unquote(human_code)), do: unquote(code)
474
end
475
+
476
+ defp humanize_error_code(code), do: {:custom_error, code}
477
+ defp dehumanize_error_code({:custom_error, code}), do: code
478
test/mint/http2/frame_test.exs
@@ -294,7 +294,10 @@ defmodule Mint.HTTP2.FrameTest do
294
:connect_error,
295
:enhance_your_calm,
296
:inadequate_security,
297
- :http_1_1_required
+ :http_1_1_required,
298
+ {:custom_error, 0x11},
299
+ {:custom_error, 0xFF},
300
+ {:custom_error, 70007}
301
])
302
303
0 commit comments