nickel-org / nickel.rs

An expressjs inspired web framework for Rust

Home Page:http://nickel-org.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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::*