httptest

package
v0.15.9 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 9 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