[−][src]Struct feroxbuster::FeroxResponse
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]
pub fn clone(&self) -> FeroxResponse
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for FeroxResponse
[src]
impl Display for FeroxResponse
[src]
Implement Display for FeroxResponse
impl FeroxSerialize for FeroxResponse
[src]
Implement FeroxSerialize for FeroxResponse
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
Auto Trait Implementations
impl RefUnwindSafe for FeroxResponse
impl Send for FeroxResponse
impl Sync for FeroxResponse
impl Unpin for FeroxResponse
impl UnwindSafe for FeroxResponse
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,