httpclient

package
v0.13.0-prerelease-test-1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpHeader

type HttpHeader struct {
	Name   string
	Values []string
}

type HttpHeaders

type HttpHeaders struct {
	Data map[string]*HttpHeader
}

type HttpRequest

type HttpRequest struct {
	Url     string
	Method  string
	Headers *HttpHeaders
	Body    []byte
}

type HttpResponse

type HttpResponse struct {
	Status     uint16
	StatusText string
	Headers    *HttpHeaders
	Body       []byte
}

func Fetch

func Fetch(ctx context.Context, request *HttpRequest) (*HttpResponse, error)

Jump to

Keyboard shortcuts

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