Effect CommunityEC
Effect Community3y ago
25 replies
ts

Creating Middleware for Modifying Response

Unsure how to write a middleware for modifying a response (e.g. setting cors headers, etc). I get access to the ServerRequest tag, so I can do
Middleware.make(Effect.updateService(ServerRequest, /* ... */))

How would I do the same for the response?
Was this page helpful?