http

package
v0.0.15-rc.4 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Post(ctx context.Context, url string, opts ...req.Opt) (Response, error)
	Get(ctx context.Context, url string, opts ...req.Opt) (Response, error)
	Close(ctx context.Context) error
}

func GetClient

func GetClient() Client

func NewHttpClient

func NewHttpClient(opts ...setup.Opt) Client

type Response

type Response interface {
	String() string
	Bytes() []byte
	Status() string
	StatusCode() int
}

Directories

Path Synopsis
opts
req

Jump to

Keyboard shortcuts

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