Module notifier_apns_http

A single HTTP/2 POST to APNs over gun.

Description

A single HTTP/2 POST to APNs over gun.

Opens a connection per request: simple and robust. Apple recommends reusing connections for high volume — a pooled implementation can replace this module without touching the sender. Also the mocking seam for tests.

Function Index

post/4

Function Details

post/4

post(Host::string(), Path::binary(), Headers::[{binary(), binary()}], Body::binary()) -> {ok, {non_neg_integer(), [{binary(), binary()}], binary()}} | {error, term()}


Generated by EDoc