httputil

package
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(ctx context.Context, url string, client *http.Client, acceptContentType string) ([]byte, error)

Types

type ContentTypeError

type ContentTypeError struct {
	// contains filtered or unexported fields
}

func (*ContentTypeError) Error

func (e *ContentTypeError) Error() string

type StatusError

type StatusError struct {
	StatusCode int
	Body       []byte
}

func (*StatusError) Error

func (e *StatusError) Error() string

Jump to

Keyboard shortcuts

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