MCPcopy
hub / github.com/Effect-TS/effect / setPayload

Method setPayload

packages/platform/src/HttpApiEndpoint.ts:134–134  ·  view source on GitHub ↗

* Set the schema for the request body of the endpoint. The schema will be * used to validate the request body before the handler is called. * * For endpoints with no request body, the payload will use the url search * parameters. * * You can set a multipart schema to handle file up

(
    schema: P & HttpApiEndpoint.ValidatePayload<Method, P>
  )

Source from the content-addressed store, hash-verified

132 * `HttpApiSchema.Multipart` combinator.
133 */
134 setPayload<P extends Schema.Schema.Any>(
135 schema: P & HttpApiEndpoint.ValidatePayload<Method, P>
136 ): HttpApiEndpoint<
137 Name,

Callers 4

GroupsApiClass · 0.65
UsersApiClass · 0.65
UsersApiClass · 0.65
OpenApi.test.tsFile · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected