Subiendo api v2

This commit is contained in:
2025-04-16 10:03:13 -03:00
commit 226933fda7
7537 changed files with 576844 additions and 0 deletions

View File

@ -0,0 +1,29 @@
{application,hackney,
[{description,"simple HTTP client"},
{vsn,"1.23.0"},
{registered,[hackney_pool]},
{applications,[kernel,stdlib,crypto,asn1,public_key,ssl,idna,
mimerl,certifi,parse_trans,ssl_verify_fun,
metrics,unicode_util_compat]},
{included_applications,[]},
{mod,{hackney_app,[]}},
{env,[{timeout,150000},
{max_connections,50},
{restart,permanent},
{shutdown,10000},
{maxr,10},
{maxt,1}]},
{licenses,["Apache-2.0"]},
{links,[{"Github","https://github.com/benoitc/hackney"}]},
{files,["src","include","rebar.config","rebar.lock","README.md",
"NEWS.md","LICENSE","NOTICE","MAINTAINERS"]},
{modules,[hackney,hackney_app,hackney_bstr,hackney_cidr,
hackney_connect,hackney_connection,
hackney_connections,hackney_cookie,hackney_date,
hackney_happy,hackney_headers,hackney_headers_new,
hackney_http,hackney_http_connect,hackney_local_tcp,
hackney_manager,hackney_metrics,hackney_multipart,
hackney_pool,hackney_pool_handler,hackney_request,
hackney_response,hackney_socks5,hackney_ssl,
hackney_ssl_certificate,hackney_stream,hackney_sup,
hackney_tcp,hackney_trace,hackney_url,hackney_util]}]}.

View File

@ -0,0 +1,62 @@
-define(RECV_TIMEOUT, 5000).
-record(connection, {transport,
host,
port,
id,
tunnel = false}).
-record(client, {
start_time,
mod_metrics = nil,
transport,
host,
port,
netloc,
options = [],
socket = nil,
socket_ref = nil,
request_ref = nil,
dynamic = true,
pool_handler = hackney_pool,
recv_timeout = ?RECV_TIMEOUT,
follow_redirect = false,
max_redirect = 5,
force_redirect = false,
retries = 0,
redirect = nil,
location=nil,
parser=nil,
headers=hackney_headers_new:new(),
state,
response_state = start,
mp_boundary = nil,
req_type = normal,
expect = false,
async = false,
with_body = false,
max_body,
stream_to,
send_fun=nil,
body_state=waiting,
multipart=nil,
req_chunk_size=4096,
buffer = <<>>,
partial_headers = [],
version,
clen = nil,
te = nil,
connection = nil,
method = nil,
path,
ctype = nil
}).
-define(CONFIG, hackney_config).
-define(CONNECTIONS, hackney_connections).
-define(HTTP_PROXY_ENV_VARS, ["http_proxy", "HTTP_PROXY", "all_proxy", "ALL_PROXY"]).
-define(HTTPS_PROXY_ENV_VARS, ["https_proxy", "HTTPS_PROXY", "all_proxy", "ALL_PROXY"]).
-define(HTTP_NO_PROXY_ENV_VARS, ["no_proxy", "NO_PROXY"]).

View File

@ -0,0 +1,33 @@
-record(hackney_url, {
transport :: atom(),
scheme :: atom(),
netloc = <<>> :: binary(),
raw_path :: binary() | undefined,
path = <<>> :: binary() | undefined | nil,
qs = <<>> :: binary(),
fragment = <<>> :: binary(),
host = "" :: string(),
port :: integer() | undefined,
user = <<>> :: binary(),
password = <<>> :: binary()
}).
-type hackney_url() :: #hackney_url{}.
-record(hparser, {
type = auto :: atom(),
max_line_length = 4096 :: integer(),
max_empty_lines = 10 :: integer(),
empty_lines = 0 :: integer(),
state = on_first_line :: atom(),
buffer = <<>> :: binary(),
version :: {integer(), integer()} | undefined,
method = <<>> :: binary(),
partial_headers = [] :: list(),
clen = undefined :: integer() | undefined | bad_int,
te = <<>> :: binary(),
connection = <<>> :: binary(),
ctype = <<>> :: binary(),
location = <<>> :: binary(),
body_state = waiting :: atom() | tuple()
}).