parser

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpRequestToStdout

func DumpRequestToStdout(request *http.Request) error

DumpRequestToStdout dumps the specified request to stdout

Types

type Parser

type Parser struct {
	Config          *config.Config
	Request         *http.Request
	Client          *http.Client
	InitialResponse *http.Response
	Body            []byte
}

Parser parser representation

func (*Parser) Do

func (parser *Parser) Do(request *http.Request) (*http.Response, error)

Do sends the request via the parser HTTP Client and return the response

func (*Parser) Init

func (parser *Parser) Init() error

Init parse the parser request file and store the request

Jump to

Keyboard shortcuts

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