Struct maman::Page
[−]
[src]
pub struct Page { pub url: Serde<Url>, pub document: String, pub headers: BTreeMap<String, String>, pub status: String, pub http_version: String, pub urls: Vec<Serde<Url>>, }
Fields
url: Serde<Url>
document: String
headers: BTreeMap<String, String>
status: String
http_version: String
urls: Vec<Serde<Url>>
Methods
impl Page
[src]
fn new(
url: Url,
document: String,
headers: BTreeMap<String, String>,
status: String,
http_version: String
) -> Self
url: Url,
document: String,
headers: BTreeMap<String, String>,
status: String,
http_version: String
) -> Self
fn to_job(&self) -> Job
fn as_object(&self) -> Value
Trait Implementations
impl Debug for Page
[src]
impl TokenSink for Page
[src]
type Handle = ()
fn process_token(&mut self, token: Token) -> TokenSinkResult<()>
Process a token.
fn adjusted_current_node_present_but_not_in_html_namespace(&self) -> bool
Used in the markup declaration open state. By default, this always returns false and thus all CDATA sections are tokenized as bogus comments. https://html.spec.whatwg.org/multipage/#markup-declaration-open-state Read more