Effect CommunityEC
Effect Community16mo ago
5 replies
Stephen Bluck

Setting Form Data Payload with HttpApi in TypeScript

Using the new HttpApi how do I set the payload as form data?
I tried something like this but no go:
HttpApiEndpoint.setPayload(
  HttpApiSchema.withEncoding({ kind: "UrlParams", contentType: "application/x-www-form-urlencoded" }),
);
Was this page helpful?