Mint.HTTP.close
You're seeing just the function
close
, go back to Mint.HTTP module for more information.
Specs
Closes the given connection.
This function closes the socket wrapped by the given connection. Once the socket
is closed, the connection goes into the "closed" state and open?/1
returns false
.
You can throw away a closed connection.
Closing a connection does not guarantee that data that is in flight gets delivered to the server.
Always returns {:ok, conn}
where conn
is the updated connection.
Examples
{:ok, conn} = Mint.HTTP.close(conn)