MCPcopy Index your code
hub / github.com/go-spring/go-spring / RequestObject

Interface RequestObject

stdlib/httpsvr/handler.go:40–45  ·  view source on GitHub ↗

RequestObject defines the interface that all request types must implement.

Source from the content-addressed store, hash-verified

38
39// RequestObject defines the interface that all request types must implement.
40type RequestObject interface {
41 // Bind binds query/path parameters to the struct.
42 Bind(*http.Request) error
43 // Validate validates the parameters.
44 Validate() error
45}
46
47// shouldParseBody determines whether the incoming HTTP method
48// is expected to carry a request body that should be parsed.

Callers 3

ReadRequestFunction · 0.65
ValidateMethod · 0.65
ReadRequestFunction · 0.65

Implementers 6

HelloRequeststdlib/httpsvr/httpsvr_test.go
AssistantReqgs/gs-http-gen/examples/go/proto/assis
GetManagerReqgs/gs-http-gen/examples/go/proto/manag
CreateManagerReqgs/gs-http-gen/examples/go/proto/manag
UpdateManagerReqgs/gs-http-gen/examples/go/proto/manag
ListManagersReqgs/gs-http-gen/examples/go/proto/manag

Calls

no outgoing calls

Tested by

no test coverage detected