fasthttp

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryArgsFromUrl

func QueryArgsFromUrl(url string) *fasthttp.Args

Types

type Sender

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

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

func (*Sender[T]) Test

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