httpx

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package httpx holds small HTTP helpers shared across the CLI's API clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(req *http.Request, h http.Header)

Apply sets each header from h on req, overriding existing values, except Authorization: user-supplied headers (RC_HEADERS) must not be able to swap out the CLI's auth credential.

func ParseHeaders

func ParseHeaders(s string) http.Header

ParseHeaders parses newline-separated "Name: Value" pairs into an http.Header, skipping blank or colon-less lines. Returns nil when none are found.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL