fasthttp

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 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, followRedirects ...bool) *FastHttpSender[T]

Instantiate new Fast HTTP Client for testing purposes

func (FastHttpSender[T]) Close added in v0.9.0

func (s FastHttpSender[T]) Close() error

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