mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Definition of Response and related enums/concepts
This commit is contained in:
parent
56e735ee79
commit
e678943939
3 changed files with 105 additions and 4 deletions
|
@ -53,8 +53,7 @@ pub enum ResponseTainting {
|
|||
Opaque // Opaque
|
||||
}
|
||||
|
||||
/// A Request as defined by the [Fetch spec](http://fetch.spec.whatwg.org/#requests)
|
||||
///
|
||||
/// A [Request](http://fetch.spec.whatwg.org/#requests) as defined by the Fetch spec
|
||||
pub struct Request {
|
||||
pub method: Method,
|
||||
pub url: Url,
|
||||
|
@ -82,7 +81,7 @@ pub struct Request {
|
|||
}
|
||||
|
||||
impl Request {
|
||||
fn new(url: Url, context: Context) -> Request {
|
||||
pub fn new(url: Url, context: Context) -> Request {
|
||||
Request {
|
||||
method: Get,
|
||||
url: url,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue