From 3df0286cb5ef4c664ddd75082afc2a17965cf96d Mon Sep 17 00:00:00 2001 From: Benjamin Milde Date: Thu, 11 Apr 2024 14:55:15 +0200 Subject: [PATCH] Update hex_http.erl Correct callback spec --- src/hex_http.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hex_http.erl b/src/hex_http.erl index 65f31b7..870c773 100644 --- a/src/hex_http.erl +++ b/src/hex_http.erl @@ -16,7 +16,7 @@ -type adapter_config() :: map(). -callback request(method(), URI :: binary(), headers(), body(), adapter_config()) -> - {ok, status(), headers(), binary()} + {ok, {status(), headers(), binary()}} | {error, term()}. -spec request(hex_core:config(), method(), URI :: binary(), headers(), body()) ->