working on implementing Cors Check and Origin to Ascii serialisation

This commit is contained in:
Nikki 2016-02-01 17:38:51 -07:00
parent 9e68285d35
commit e8665d47ea
7 changed files with 278 additions and 14 deletions

View file

@ -31,7 +31,7 @@ pub enum TerminationReason {
/// The response body can still be pushed to after fetch
/// This provides a way to store unfinished response bodies
#[derive(Clone)]
#[derive(Clone, Debug)]
pub enum ResponseBody {
Empty, // XXXManishearth is this necessary, or is Done(vec![]) enough?
Receiving(Vec<u8>),
@ -39,7 +39,7 @@ pub enum ResponseBody {
}
/// [Cache state](https://fetch.spec.whatwg.org/#concept-response-cache-state)
#[derive(Clone)]
#[derive(Clone, Debug)]
pub enum CacheState {
None,
Local,