pksunkara / reign

Opinionated Isomorphic Web Framework in Rust
https://reign.rs
Apache License 2.0
5 stars 3 forks source link

Implement Response for common types #10

Open pksunkara opened 4 years ago

pksunkara commented 4 years ago

We have to make sure that all actions can return all the below types.

Status
&str
  • [x]
String
  • [x]
u16
  • [ ]
StatusCode
  • [ ]
&[u8]
  • [ ]
Bytes
  • [ ]
Response<Body>
  • [x]

Please note that headers, body and status should be consistent