How to change the Server response header ?
imclint21 opened this issue · comments
Hey,
How to do this?
Cheers!
As in the media type?
response.set(MediaType::Json);
Note that response
needs to be mutable. In general you can use response.set
to set the headers defined in hyper::header::*
Alright