Skip to content

Commit

Permalink
fix: use exported types from restc
Browse files Browse the repository at this point in the history
  • Loading branch information
chsukivra committed Nov 29, 2024
1 parent 69c58ef commit 30390e6
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions include/oauth2c.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,16 @@
-type url() :: binary().
%% <<"password">> or <<"client_credentials">>
-type at_type() :: binary().
-type headers() :: [header()].
-type header() :: {binary(), binary()}.
-type headers() :: restc:headers().
-type header() :: restc:header().
-type status_codes() :: [status_code()].
-type status_code() :: integer().
-type reason() :: term().
-type content_type() :: json | xml | percent.
-type property() :: atom() | tuple().
-type proplist() :: [property()].
-type options() :: proplist().
-type body() :: proplist() | [proplist()].
-type restc_response() :: { ok
, Status::status_code()
, Headers::headers()
, Body::body()} |
{ error
, Status::status_code()
, Headers::headers()
, Body::body()} |
{ error, Reason::reason()}.
-type response() :: {restc_response(), #client{}}.
-type body() :: restc:body().
-type response() :: {restc:response(), #client{}}.
-type token_type() :: bearer | unsupported.
-type client() :: #client{}.

0 comments on commit 30390e6

Please sign in to comment.