mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Pass the URL to Response::new().
This commit is contained in:
parent
89c46369a2
commit
c1e1695f66
2 changed files with 7 additions and 15 deletions
|
@ -100,11 +100,11 @@ pub struct Response {
|
|||
}
|
||||
|
||||
impl Response {
|
||||
pub fn new() -> Response {
|
||||
pub fn new(url: Url) -> Response {
|
||||
Response {
|
||||
response_type: ResponseType::Default,
|
||||
termination_reason: None,
|
||||
url: None,
|
||||
url: Some(url),
|
||||
url_list: RefCell::new(Vec::new()),
|
||||
status: Some(StatusCode::Ok),
|
||||
raw_status: Some((200, b"OK".to_vec())),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue