mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Add location_url to Metadata struct
This commit is contained in:
parent
d6c197b40c
commit
5b69d18fca
3 changed files with 8 additions and 0 deletions
|
@ -411,6 +411,9 @@ pub struct Metadata {
|
|||
/// Final URL after redirects.
|
||||
pub final_url: ServoUrl,
|
||||
|
||||
/// Location URL from the response headers.
|
||||
pub location_url: Option<Result<ServoUrl, String>>,
|
||||
|
||||
#[ignore_heap_size_of = "Defined in hyper"]
|
||||
/// MIME type / subtype.
|
||||
pub content_type: Option<Serde<ContentType>>,
|
||||
|
@ -440,6 +443,7 @@ impl Metadata {
|
|||
pub fn default(url: ServoUrl) -> Self {
|
||||
Metadata {
|
||||
final_url: url,
|
||||
location_url: None,
|
||||
content_type: None,
|
||||
charset: None,
|
||||
headers: None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue