RJR
Convex Communityโ€ข17mo agoโ€ข
23 replies
RJ

Serializing/deserializing `Request`/`Response` objects in HTTP action

I'm trying to integrate Effect's HTTP API library (it's like Hono, basically) with my Convex HTTP API, but (until someone adds a Convex platform for @effect/platform ๐Ÿ™‚) doing so requires me to run the HTTP endpoint handlers in a Node runtime. I'm at the point where I have a function (request: Request) => Response, but if I can't run the handler directly in the HTTP action, maybe I could serialize/deserialize the
Request
/Response objects? I'm curious whether this has come up before, and (either way) whether anyone has any knowledge of whether this is possible/feasible, either in the general case or in certain narrower ones.
Was this page helpful?