fasthttp

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallHandler added in v0.9.1

func CallHandler(t testing.TB, url string, h fasthttp.RequestHandler) *fasthttp.RequestCtx

func QueryArgsFromUrl added in v0.9.1

func QueryArgsFromUrl(url string) *fasthttp.Args

Types

type Sender added in v1.0.0

type Sender[T any] struct {
	// contains filtered or unexported fields
}

func New

func New[T any](t testing.TB, dialer func() (net.Conn, error), followRedirects ...bool) *Sender[T]

func NewWithServer added in v1.0.0

func NewWithServer[T any](t testing.TB, s *fasthttp.Server, followRedirects ...bool) *Sender[T]

func (*Sender[T]) Test added in v1.0.0

func (s *Sender[T]) Test(req *http.Request, timeout ...time.Duration) nano_http.ExtendedResponse[T]

Sends a HTTP request for testing purposes

Jump to

Keyboard shortcuts

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