[][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 fn line_count(&self) -> usize[src]

Returns line count of the response text.

pub fn word_count(&self) -> usize[src]

Returns word count of the response text.

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]

impl<'de> Deserialize<'de> for FeroxResponse[src]

Deserialize implementation for FeroxResponse

pub fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
    D: Deserializer<'de>, 
[src]

Deserialize a FeroxResponse from a serde_json::Value

impl Display for FeroxResponse[src]

Implement Display for FeroxResponse

impl FeroxSerialize for FeroxResponse[src]

Implement FeroxSerialusize::from(ize for FeroxRespons)e

pub fn as_str(&self) -> String[src]

Simple wrapper around create_report_string

pub fn as_json(&self) -> String[src]

Create an NDJSON representation of the FeroxResponse

(expanded for clarity) ex: { "type":"response", "url":"https://localhost.com/images", "path":"/images", "status":301, "content_length":179, "line_count":10, "word_count":16, "headers":{ "x-content-type-options":"nosniff", "strict-transport-security":"max-age=31536000; includeSubDomains", "x-frame-options":"SAMEORIGIN", "connection":"keep-alive", "server":"nginx/1.16.1", "content-type":"text/html; charset=UTF-8", "referrer-policy":"origin-when-cross-origin", "content-security-policy":"default-src 'none'", "access-control-allow-headers":"X-Requested-With", "x-xss-protection":"1; mode=block", "content-length":"179", "date":"Mon, 23 Nov 2020 15:33:24 GMT", "location":"/images/", "access-control-allow-origin":"https://localhost.com" } }\n

impl Serialize for FeroxResponse[src]

Serialize implementation for FeroxResponse

pub fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
    S: Serializer
[src]

Function that handles serialization of a FeroxResponse to NDJSON

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T> Instrument for T[src]

impl<T> Instrument 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> ToString for T where
    T: Display + ?Sized
[src]

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>, 

impl<T> WithSubscriber for T[src]