gun:close(3)

Name

gun:close - Brutally close the connection

Description

close(ConnPid) -> ok

ConnPid :: pid()

Brutally close the connection.

Arguments

ConnPid

The pid of the Gun connection process.

Return value

The atom ok is returned.

Changelog

  • 1.0: Function introduced.

Examples

Close the connection
ok = gun:close(ConnPid).

See also

gun(3), gun:open(3), gun:open_unix(3)

Gun 1.1 Function Reference

Navigation

Version select

Like my work? Donate!

Donate to Loïc Hoguin because his work on Cowboy, Ranch, Gun and Erlang.mk is fantastic:

Recurring payment options are also available via BountySource. These funds are used to cover the recurring expenses like dedicated servers or domain names.