[][src]Struct feroxbuster::FeroxResponse

pub struct FeroxResponse { /* fields omitted */ }

A FeroxResponse, derived from a Response to a submitted Request

Implementations

impl FeroxResponse[src]

FeroxResponse implementation

pub fn status(&self) -> &StatusCode[src]

Get the StatusCode of this FeroxResponse

pub fn url(&self) -> &Url[src]

Get the final Url of this FeroxResponse.

pub fn text(&self) -> &str[src]

Get the full response text

pub fn headers(&self) -> &HeaderMap[src]

Get the Headers of this FeroxResponse

pub fn content_length(&self) -> u64[src]

Get the content-length of this response, if known

pub fn set_url(&mut self, url: &str)[src]

Set FeroxResponse's url attribute, has no affect if an error occurs

pub fn is_file(&self) -> bool[src]

Make a reasonable guess at whether the response is a file or not

Examines the last part of a path to determine if it has an obvious extension i.e. http://localhost/some/path/stuff.js where stuff.js indicates a file

Additionally, inspects query parameters, as they're also often indicative of a file

pub async fn from(response: Response, read_body: bool) -> Self[src]

Create a new FeroxResponse from the given Response

Trait Implementations

impl Clone for FeroxResponse[src]

impl Debug for FeroxResponse[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,