httptest

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(got Request, want Request) (errs []error)

func Dump

func Dump(request *http.Request) (string, error)

Types

type Request

type Request struct {
	Method  method.Method
	Path    string
	Proto   string
	Headers headers.Headers
	Body    string
}

func NewRequest

func NewRequest() Request

func Parse

func Parse(raw string) (request Request, err error)

Jump to

Keyboard shortcuts

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