Definition at line 56 of file http-client.cpp.
◆ HTTPClientFuzzer()
| HTTPClientFuzzer::HTTPClientFuzzer |
( |
| ) |
|
|
inline |
◆ init()
| int HTTPClientFuzzer::init |
( |
| ) |
|
|
virtual |
◆ run()
| int HTTPClientFuzzer::run |
( |
const std::string & |
filename | ) |
|
|
virtual |
Implements Fuzzer.
Definition at line 72 of file http-client.cpp.
78 std::cout <<
"Error: failed to load file " << filename << std::endl;
83 client.
test(s, std::chrono::milliseconds(1000));
85 catch (
const std::exception &e)
87 std::cerr <<
"Failed to test http client: " << e.what() << std::endl;
bool load_file_to_string(const std::string &path_to_file, std::string &target_str, size_t max_size=1000000000)
bool test(const std::string &s, std::chrono::milliseconds timeout)
The documentation for this class was generated from the following file: