http

package
v0.0.0-...-9d91e49 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

Variables

This section is empty.

Functions

This section is empty.

Types

type Header struct {
	Key   string
	Value string
}

type HttpClient

type HttpClient struct {
	*http.Client
}

func NewClient

func NewClient() *HttpClient

func (*HttpClient) Request

func (c *HttpClient) Request(r *Request) (*http.Response, error)

type Request

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

func NewRequest

func NewRequest(method, url string, body map[string]interface{}) *Request

func (*Request) SetBasicAuth

func (r *Request) SetBasicAuth(username, password string)

func (*Request) SetHeader

func (r *Request) SetHeader(key, value string)

Jump to

Keyboard shortcuts

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