fasthttp

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: MIT Imports: 6 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 FastHttpSender

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

Type FastHttpSender Sturcture contains in memory server and client for testing purposes

func New

func New(t testing.TB, dialer func() (net.Conn, error), followRedirects ...bool) *FastHttpSender

Instantiate new Fast HTTP Client for testing purposes

func (FastHttpSender) Close added in v0.9.0

func (s FastHttpSender) Close() error

func (*FastHttpSender) Test

func (s *FastHttpSender) Test(req *http.Request, timeout ...time.Duration) (*http.Response, error)

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