rest

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2020 License: MIT Imports: 11 Imported by: 0

README

rest

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpRequest

func DumpRequest(r *http.Request)

func DumpResponse

func DumpResponse(r *http.Response)

func ParseAll

func ParseAll(r io.Reader) <-chan *http.Request

func ParseAllString

func ParseAllString(raw string) []*http.Request

func ParseOne

func ParseOne(r io.Reader) (*http.Request, error)

func ParseOneString

func ParseOneString(raw string) (*http.Request, error)

Types

type Scanner

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

https://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html

func NewScanner

func NewScanner(r io.Reader) *Scanner

func (*Scanner) Err

func (s *Scanner) Err() error

func (*Scanner) Request

func (s *Scanner) Request() *http.Request

func (*Scanner) Scan

func (s *Scanner) Scan() bool

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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