request

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RawRequest

type RawRequest struct {
	URL      string                 `json:"url" binding:"required"`
	Method   string                 `json:"method,omitempty"`
	Meta     map[string]interface{} `json:"meta,omitempty"`
	Headers  map[string]string      `json:"headers,omitempty"`
	Cookies  map[string]string      `json:"cookies,omitempty"`
	Body     []byte                 `json:"body,omitempty"`
	Encoding string                 `json:"encoding,omitempty"`
}

RawRequest TODO

type Request

type Request struct {
	*RawRequest
	*utils.ParsedURL
}

Request TODO

func NewRequest

func NewRequest(rawReq *RawRequest) (request *Request, err error)

NewRequest TODO

func (*Request) MarshalJSON added in v0.0.12

func (req *Request) MarshalJSON() ([]byte, error)

MarshalJSON TODO

func (*Request) UnmarshalJSON added in v0.0.12

func (req *Request) UnmarshalJSON(b []byte) (err error)

UnmarshalJSON TODO

Jump to

Keyboard shortcuts

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