mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
working on implementing Cors Check and Origin to Ascii serialisation
This commit is contained in:
parent
9e68285d35
commit
e8665d47ea
7 changed files with 278 additions and 14 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue