-
Notifications
You must be signed in to change notification settings - Fork 3.6k
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Document how to use Protobuf (or something else) as a MediaType #16548
Comments
This is already possible within the marshaling infrastructure, so this ticket should be regarded as a request to document how that works. |
Documentation with examples will certainly be very useful. As a relative beginner with scala and akka I find it very hard to figure out how to set response content type in the following example:
How to tell akka-http to set content type to application/json here? |
@kostya-sh The server-side routing DSL provided by akka-http is very similarly to the one from spray. |
@sirthias Thank you for the link to the docs. I figured out that I can do something like
to implement my requirement. To be honest this solution looks a bit ugly to me and I guess there might be a better way to do it. This brings us back to the point of docs (with examples!). |
Ticket moved to github.com/akka/akka-http Rationale for the move discussed here: akka/akka-meta#27 If you are interested in contributing or tracking this issue, please comment in akka-http instead from now on :-) |
We used Protobuf encoding objects on my project. I marked data format as a MediaType, like this:
The text was updated successfully, but these errors were encountered: