http

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseRequest

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

func (*BaseRequest) Body

func (req *BaseRequest) Body() io.Reader

func (*BaseRequest) Headers

func (req *BaseRequest) Headers() http.Header

func (*BaseRequest) Method

func (req *BaseRequest) Method() string

func (*BaseRequest) Path

func (req *BaseRequest) Path() string

func (*BaseRequest) Query

func (req *BaseRequest) Query() url.Values

func (*BaseRequest) Send

func (req *BaseRequest) Send() (*http.Response, error)

func (*BaseRequest) SetUrl

func (req *BaseRequest) SetUrl(url string)

func (*BaseRequest) Url

func (req *BaseRequest) Url() string

type Request

type Request interface {
	Method() string
	Path() string
	Query() url.Values
	Url() string
	Body() io.Reader
	Headers() http.Header
	SetUrl(s string)
	Send() (*http.Response, error)
}

Jump to

Keyboard shortcuts

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