Documentation ¶
Overview ¶
Package examples demonstrates httpexpect usage.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EchoHandler ¶
EchoHandler creates http.Handler using echo framework.
Routes:
GET /login authenticate user and return JWT token GET /restricted/hello return "hello, world!" (requires authentication)
func FastHTTPHandler ¶
func FastHTTPHandler() fasthttp.RequestHandler
FastHTTPHandler creates fasthttp.RequestHandler.
Routes:
GET /ping return "pong"
func FruitsHandler ¶
FruitsHandler creates http.Handler for the fruits server.
Routes:
GET /fruits get fruit list GET /fruits/{name} get fruit PUT /fruits/{name} add or update fruit
func GaeHandler ¶
GaeHandler creates http.Handler to run in the Google App Engine.
Routes:
GET /ping return "pong"
func WsFastHandler ¶
func WsFastHandler(ctx *fasthttp.RequestCtx)
WsFastHandler is a simple fasthttp.RequestHandler that implements WebSocket echo server.
func WsHttpHandler ¶
func WsHttpHandler(w http.ResponseWriter, r *http.Request)
WsHttpHandler is a simple http.Handler that implements WebSocket echo server.
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.