mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-05-09 16:10:42 +00:00
make all fields of response private, we're breaking change anyways
Closes #34 Related to #27
This commit is contained in:
parent
44f3c9fe84
commit
b7a1193333
9 changed files with 23 additions and 21 deletions
|
@ -81,7 +81,6 @@ pub trait DrawResourceRoutes {
|
|||
fn remove<Handler: ResourceRemove>(&mut self);
|
||||
}
|
||||
|
||||
#[allow(deprecated)]
|
||||
fn response_from(res: Response, state: &State) -> gotham::hyper::Response<Body> {
|
||||
let mut r = create_empty_response(state, res.status);
|
||||
let headers = r.headers_mut();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue