Module h2_client

Data Types

error_code()

error_code() = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13

stream_id()

stream_id() = non_neg_integer()

Function Index

get_response/2
send_ping/1
send_request/3
start/4
start_link/0
start_link/2
start_link/3
start_link/4
start_ssl_upgrade_link/4
stop/1
sync_request/3

Function Details

get_response/2

get_response(CliPid::pid(), StreamId::stream_id()) -> {ok, {hpack:header(), iodata()}} | not_ready | {error, term()}

send_ping/1

send_ping(CliPid) -> any()

send_request/3

send_request(CliPid, Headers, Body) -> Result

start/4

start(Transport::http | https, Host::string(), Port::non_neg_integer(), SSLOptions::[ssl:ssl_option()]) -> {ok, pid()} | ignore | {error, term()}

start_link/0

start_link() -> {ok, pid()} | ignore | {error, any()}

start_link/2

start_link(X1::http | https, Host::string()) -> {ok, pid()} | ignore | {error, term()}

start_link/3

start_link(X1::http | https, Host::string(), Port::non_neg_integer() | [ssl:ssl_option()]) -> {ok, pid()} | ignore | {error, term()}

start_link/4

start_link(Transport::http | https, Host::string(), Port::non_neg_integer(), SSLOptions::[ssl:ssl_option()]) -> {ok, pid()} | ignore | {error, term()}

start_ssl_upgrade_link/4

start_ssl_upgrade_link(Host, Port, InitialMessage, SSLOptions) -> any()

stop/1

stop(Pid::pid()) -> ok

sync_request/3

sync_request(CliPid, Headers, Body) -> Result


Generated by EDoc