You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should have something like api.raw(route_name, handler) where handler: (RequestParams, &State) -> Response, allowing the handler to build a response arbitrarily. This could be a simple wrapper around tide::ResponseBuilder. Example use cases:
a route that always returns binary data (Vec<u8>) without having to go through the extra step of bincode serializing that data
a Prometheus route
non-RESTful routes in general
The text was updated successfully, but these errors were encountered:
We should have something like
api.raw(route_name, handler)
wherehandler: (RequestParams, &State) -> Response
, allowing the handler to build a response arbitrarily. This could be a simple wrapper around tide::ResponseBuilder. Example use cases:Vec<u8>
) without having to go through the extra step of bincode serializing that dataThe text was updated successfully, but these errors were encountered: