client

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GET  = "GET"
	POST = "POST"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func New

func New(opts Options) (*Handler, error)

func (*Handler) Do

func (h *Handler) Do() (*Response, error)

type Options

type Options struct {
	Type    string
	URL     string
	Headers map[string][]string
	Params  map[string][]string
}

type Response

type Response struct {
	Code   int
	Status string
	Data   []byte
}

Jump to

Keyboard shortcuts

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