effect-http
effect-http copied to clipboard
Declarative HTTP API library for effect-ts
[](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/deploy-pages](https://togithub.com/actions/deploy-pages) | action | major | `v2` -> `v4` | ---...
Hello, I want to set _content-type_ header to _text/plain_ in a response to a get request. I tried your [example](https://github.com/sukovanej/effect-http#responses) but without _Schema.struct_ it does not compile. The code below...
Hello again, and thanks for all your help so far. I have little thing to propose, nothing very important. I think that in the GET docs the fields that have...
Add a new type parameter to ApiRequest, tracking the body type for the client creating the request. Add request-bodies setters that take both the server and client schemas. In the...
@effect/platform allows middleware at the request, router and server level. It would be really neat to do the same here with ApiGroups or RouterBuilder.handle for an individual route
I realize the validation errors are coming from `Schema`, but is there any way to further customize or improve upon this? ```typescript const LoginBody = S.Struct({ name: S.String, password: S.String.pipe(S.minLength(5,...
I find it useful for testing as it's output is more predictable than fast-check arbitraries
Example: ```ts import { HttpServerRequest } from '@effect/platform' import { Schema } from '@effect/schema' import { Effect, flow, pipe } from 'effect' import { Api, RouterBuilder, Security } from 'effect-http'...