Skip to content

Latest commit

 

History

History
122 lines (60 loc) · 3.49 KB

hackney_connect.md

File metadata and controls

122 lines (60 loc) · 3.49 KB

Module hackney_connect

Function Index

check_or_close/1
close/1close the client.
connect/3
connect/4
connect/5
create_connection/4create a connection and return a client state.
create_connection/5
is_pool/1get current pool pid or name used by a client if needed.
maybe_connect/1connect a socket and create a client state.
partial_chain/1
peername/1get the address and port for the other end of current connection in the client.
reconnect/4
set_sockopts/2add set sockets options in the client.
sockname/1the local address and port of current socket in the client.
ssl_opts/2

Function Details

check_or_close/1

check_or_close(Client) -> any()

close/1

close(Client) -> any()

close the client

connect/3

connect(Transport, Host, Port) -> any()

connect/4

connect(Transport, Host, Port, Options) -> any()

connect/5

connect(Transport, Host, Port, Options, Dynamic) -> any()

create_connection/4

create_connection(Transport, Host, Port, Options) -> any()

create a connection and return a client state

create_connection/5

create_connection(Transport, Host, Port, Options, Dynamic) -> any()

is_pool/1

is_pool(Client) -> any()

get current pool pid or name used by a client if needed

maybe_connect/1

maybe_connect(Client) -> any()

connect a socket and create a client state.

partial_chain/1

partial_chain(Certs) -> any()

peername/1

peername(Client) -> any()

get the address and port for the other end of current connection in the client

reconnect/4

reconnect(Host, Port, Transport, State) -> any()

set_sockopts/2

set_sockopts(Client, Options) -> any()

add set sockets options in the client

sockname/1

sockname(Client) -> any()

the local address and port of current socket in the client

ssl_opts/2

ssl_opts(Host, Options) -> any()