func handler(req pelau.Request, res pelau.Response) { fmt.Printf("[%s] request detected on path %s.\n", req.Raw().Method, req.Raw().URL.Path) fmt.Printf("Printing Submatches: %v\n", req.Params()) res.Head("X-Men", "Was a good show") // res.Header("Content-Type", "application/json") res.Send(struct{ FIELD string }{"NAME"}) }