Effect CommunityEC
Effect Community7mo ago
2 replies
Stephen Bluck

Converting a `Layer<HttpApi.Api>` to a Web Handler Function

I have a Layer<HttpApi.Api> and would like to make a function of request -> response from this, ie a web handler. Is this possible? I know toWebHandler exists on HttpApp but am not sure how to wrangle a layer of an api to that. Any ideas?
Was this page helpful?