-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify the design and plans for the HTTP feature #849
Comments
Yeah, there are two independent developments: server and client.
From my perspective, we would need to re-design/re-write the HTTP feature to make it a single thing. For example, given an OpenAPI spec, |
One other thing I noticed about the @service(Protobuf) trait MyService[F[_]] {
def gRpcEndpointWithProtobufSerialization(...): F[...]
@http def httpEndpointWithJsonSerialization(...): F[...]
} I don't think an HTTP service and an RPC service should be mixed together this. |
Mu currently has the following in the way of HTTP (i.e. not gRPC) support:
@http
annotation that can be added to methods in service traits. This results in the@service
macro generating some http4s-specific server and client (?) code. This whole feature is undocumented and I'm not sure what its status is. The long discussion on Make the HTTP feature more flexible to foster easy migrations #583 is the most useful historical record I've found so far.These two features seem to have been built independently and I'm not sure how they fit together into a larger plan. I'd like to clarify this, document it and start building whatever is missing.
The text was updated successfully, but these errors were encountered: