request

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 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    string                 `json:"body,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) Clone added in v0.1.14

func (req *Request) Clone() *Request

Clone 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