Documentation
¶
Overview ¶
Package httptransport provides a shared *http.Transport factory used by the Jamf Pro HTTP client and the auth providers. Lives in its own package so both can import it without creating a cycle (client already depends on auth).
Index ¶
Constants ¶
const ResponseHeaderTimeout = 120 * time.Second
ResponseHeaderTimeout is how long a request waits for the server to start answering once it has been sent.
Above 90s on purpose: the CloudFront edge in front of the platform gateway answers 504 after 90s (issue 392), and that 504 is a better answer than a client-side timeout — it arrives with a status the caller can act on, and at 60s the CLI gave up on requests the server was about to answer (a 1000-row computer inventory page took 45s on the reporter's tenant, and the same request timed out on another run). Not much above it either: it is also how long a dead connection hangs before the CLI says so.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.