httpclient

package
v0.0.0-...-9208c1c Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package httpclient builds the HTTP client for Plane (C13 v1).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(o Options) (*http.Client, error)

New returns a client trusting system CAs plus the certificates from CAFile and sending Headers with every request.

Types

type Options

type Options struct {
	Timeout time.Duration
	CAFile  string            // path (already expanded); empty — system CAs only
	Headers map[string]string // added to every request (e.g. CF-Access-Client-Id/Secret)
}

Options configures New.

Jump to

Keyboard shortcuts

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