mirror of
https://github.com/epi052/feroxbuster.git
synced 2026-05-28 01:11:12 -03:00
added docstring to builder
This commit is contained in:
@@ -138,6 +138,9 @@ impl<'a> ExtractorBuilder<'a> {
|
||||
self
|
||||
}
|
||||
|
||||
/// finalize configuration of ExtratorBuilder and return an Extractor
|
||||
///
|
||||
/// requires either with_url or with_response to have been used in the build process
|
||||
pub fn build(&self) -> Result<Extractor<'a>> {
|
||||
if self.url.is_empty() && self.response.is_none() {
|
||||
bail!("Extractor requires either a URL or a FeroxResponse be specified")
|
||||
|
||||
Reference in New Issue
Block a user