MCPcopy Create free account
hub / github.com/Masterminds/cookoo / FormValuesDatasource

Struct FormValuesDatasource

web/datasources.go:58–60  ·  view source on GitHub ↗

Access to name/value pairs in POST/PUT form data from the body. This will attempt to access form data supplied in the HTTP request's body. If the MIME type is not correct or if there is no POST data, no data will be made available. Parsing is lazy: No form data is parsed until it is requested.

Source from the content-addressed store, hash-verified

56//
57// Parsing is lazy: No form data is parsed until it is requested.
58type FormValuesDatasource struct {
59 req *http.Request
60}
61
62func (f *FormValuesDatasource) Init(req *http.Request) *FormValuesDatasource {
63 f.req = req

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected