How to set the mime type of a response?

Hello all,

Is there a way in which a canister can set the mime type of a query call response?

Best wishes, Max

1 Like

Or http headers in general… I suppose there could be all sorts of use cases beyond just mime type. Cache control for starters, boring but useful.

You can implement http_request. Some info on how to do that here: How do you call http_request on localhost?

2 Likes