Mint.HTTP.delete_private
You're seeing just the function
delete_private
, go back to Mint.HTTP module for more information.
Specs
Deletes a value in the private store.
Deletes the private value stored under key
in the connection. Returns the
updated connection.
See also put_private/3
and get_private/3
.
Examples
conn = Mint.HTTP.put_private(conn, :client_name, "Mint")
Mint.HTTP.get_private(conn, :client_name)
#=> "Mint"
conn = Mint.HTTP.delete_private(conn, :client_name)
Mint.HTTP.get_private(conn, :client_name)
#=> nil