http

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package http fetches content from a generic HTTP(S) endpoint.

SECURITY NOTE: this adapter performs no SSRF protection (no restriction on target IP ranges). That's acceptable while URLs are only ever configured by the operator running the CLI against their own data. It becomes a real requirement once a network-facing service (the future readproofd HTTP API) accepts resource registration from less-trusted callers — see spec §39.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fetcher

type Fetcher struct {
	HTTPClient *http.Client
}

func New

func New() *Fetcher

func (*Fetcher) Fetch

Jump to

Keyboard shortcuts

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