Documentation ¶
Overview ¶
Package httptestbench provides benchmark helper to send concurrent http requests and assert responses.
Index ¶
Constants ¶
View Source
const RaceDetectorEnabled = false
RaceDetectorEnabled exposes Go race detector status.
Race detector affects performance and allocations so it has to be taken in account when asserting benchmark results.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct { URL string // base URL of form http://ipaddr:port with no trailing slash // contains filtered or unexported fields }
Server is a fasthttp server for tests.
func NewServer ¶
func NewServer(handler fasthttp.RequestHandler) *Server
NewServer starts new fasthttp test server with free local port.
Click to show internal directories.
Click to hide internal directories.