fasthttp

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FastHttpSender

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

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

func New

func New[T any](t testing.TB, app *fasthttp.Server, followRedirect bool) *FastHttpSender[T]

Instantiate new Fast HTTP Client for testing purposes

func (*FastHttpSender[T]) Test

func (s *FastHttpSender[T]) 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