Mint.HTTP.open_request_count
You're seeing just the function
open_request_count
, go back to Mint.HTTP module for more information.
Specs
open_request_count(t()) :: non_neg_integer()
Returns the number of open requests.
Open requests are requests that have not yet received a :done
response.
This function returns the number of open requests for both HTTP/1 and HTTP/2,
but for HTTP/2 only client-initiated requests are considered as open requests.
See Mint.HTTP2.open_request_count/1
for more information.
Examples
{:ok, conn, _ref} = Mint.HTTP.request(conn, "GET", "/", [])
Mint.HTTP.open_request_count(conn)
#=> 1