Classes | |
| struct | MultipartField |
| Structure for multipart form fields. More... | |
| struct | Request |
| Structure containing HTTP metadata for requests. More... | |
| struct | RequestContext |
| struct | Response |
| Basic HTTP response structure. More... | |
Enumerations | |
| enum | ResponseCode { Continue = 100 , SwitchingProtocols = 101 , OK = 200 , Created = 201 , Accepted = 202 , NonAuthoritativeInformation = 203 , NoContent = 204 , ResetContent = 205 , PartialContent = 206 , MultipleChoices = 300 , MovedPermanently = 301 , Found = 302 , SeeOther = 303 , NotModified = 304 , UseProxy = 305 , TemporaryRedirect = 307 , BadRequest = 400 , Unauthorized = 401 , PaymentRequired = 402 , Forbidden = 403 , NotFound = 404 , MethodNotAllowed = 405 , NotAcceptable = 406 , ProxyAuthenticationRequired = 407 , RequestTimeout = 408 , Conflict = 409 , Gone = 410 , LengthRequired = 411 , PreconditionFailed = 412 , RequestEntityTooLarge = 413 , RequestURITooLong = 414 , UnsupportedMediaType = 415 , RequestedRangeNotSatisfiable = 416 , ExpectationFailed = 417 , ImATeapot = 418 , InternalServerError = 500 , NotImplemented = 501 , BadGateway = 502 , ServiceUnavailable = 503 , GatewayTimeout = 504 , HTTPVersionNotSupported = 505 } |
Functions | |
| int64_t | HttpReadCallback (uint8_t *data, uint64_t len, void *ctxt) |
| uint64_t | HttpWriteCallback (uint8_t *data, uint64_t len, void *ctxt) |
| string | UrlEncode (const string &str) |
| string | UrlEncode (const vector< pair< string, string > > &fields) |
| vector< uint8_t > | MultipartEncode (const vector< MultipartField > &fields, string &boundary) |
| int | Perform (const Ref< DownloadInstance > &instance, const Request &request, Response &response) |
| Perform an HTTP request as specified by a Request, storing results in a Response. | |
| std::string | UrlEncode (const std::string &str) |
| Convert a string to a URLEncoded form-field safe form. | |
| std::string | UrlEncode (const std::vector< std::pair< std::string, std::string > > &fields) |
| Convert a list of key/value pair strings into a URLEncoded form body. | |
| std::vector< uint8_t > | MultipartEncode (const std::vector< MultipartField > &fields, std::string &boundary) |
| Convert a list of form fields (potentially containing binary data) into a multipart encoded form body. | |
| int64_t BinaryNinja::Http::HttpReadCallback | ( | uint8_t * | data, |
| uint64_t | len, | ||
| void * | ctxt ) |
| uint64_t BinaryNinja::Http::HttpWriteCallback | ( | uint8_t * | data, |
| uint64_t | len, | ||
| void * | ctxt ) |
| string BinaryNinja::Http::UrlEncode | ( | const string & | str | ) |
| string BinaryNinja::Http::UrlEncode | ( | const vector< pair< string, string > > & | fields | ) |
| vector< uint8_t > BinaryNinja::Http::MultipartEncode | ( | const vector< MultipartField > & | fields, |
| string & | boundary ) |
| int BinaryNinja::Http::Perform | ( | const Ref< DownloadInstance > & | instance, |
| const Request & | request, | ||
| Response & | response ) |
Perform an HTTP request as specified by a Request, storing results in a Response.
| instance | DownloadInstance instance |
| request | Input Request structure with fields |
| response | Output Response structure with body |
| std::string BinaryNinja::Http::UrlEncode | ( | const std::string & | str | ) |
Convert a string to a URLEncoded form-field safe form.
| str | Input string |
| std::string BinaryNinja::Http::UrlEncode | ( | const std::vector< std::pair< std::string, std::string > > & | fields | ) |
Convert a list of key/value pair strings into a URLEncoded form body.
| fields | Input key/value pairs |
| std::vector< uint8_t > BinaryNinja::Http::MultipartEncode | ( | const std::vector< MultipartField > & | fields, |
| std::string & | boundary ) |
Convert a list of form fields (potentially containing binary data) into a multipart encoded form body.
| fields | Input fields |
| boundary | Output boundary between fields in the body (for Content-Type header) |