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"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.