put_private, go back to Mint.HTTP module for more information.
Assigns a new private key and value in the connection.
This storage is meant to be used to associate metadata with the connection and it can be useful when handling multiple connections.
key must be an atom, while the given
value can be an arbitrary
term. The return value of this function is an updated connection.
Let's see an example of putting a value and then getting it:
conn = Mint.HTTP.put_private(conn, :client_name, "Mint") Mint.HTTP.get_private(conn, :client_name) #=> "Mint"