MCPcopy Create free account
hub / github.com/BryanMwangi/pine / Ctx

Struct Ctx

pine.go:33–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33type Ctx struct {
34 Server *Server // Reference to *Server
35 Method string // HTTP method
36 BaseURI string // HTTP base uri
37 Request *http.Request // HTTP request
38 Response *responseWriterWrapper // HTTP response writer
39 params map[string]string // URL parameters
40 locals map[interface{}]interface{} // Local variables
41 indexHandler int // Index of the handler
42 route *Route // HTTP route
43}
44
45type responseWriterWrapper struct {
46 http.ResponseWriter

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected