http

package
v0.0.0-...-bdf4119 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetWithAuth

func GetWithAuth(ctx context.Context, url, auth string) (*http.Response, error)

func PostForValues

func PostForValues(_url, contentType string, body io.Reader) (url.Values, error)

PostForValues issues a POST to the specified URL and returns the response body as url.Values.

func Put

func Put(ctx context.Context, url string, contentType string, body io.Reader) (*http.Response, error)

Put issues a PUT to the specified URL.

Caller should close resp.Body when done reading from it.

If the provided body is an io.Closer, it is closed after the request.

To set custom headers, use NewRequest and DefaultClient.Do.

See the Client.Do method documentation for details on how redirects are handled.

func RemoveQueryParam

func RemoveQueryParam(qurl string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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