[−][src]Trait tenable::HttpRequest
Generic Requests which provides information for further processing using the HTTP function given by the user
Associated Types
type Output
Type which is returned by the HTTP Endpoint
Required methods
fn to_request(&self) -> Result<Request<Vec<u8>>, Error<RE>>
Creates an HTTP Request which can be send using an Http Client
Errors
Fails if it is not possible to create a valid Request
fn from_response(&self, res: Response) -> Result<Self::Output, Error<RE>>
Parses the Http Client Response to its concret Type.
Errors
Fails in the following cases:
- Server responded with error code
- Unable to deserialize the server response