Commit cd475822 authored by Lucas Pardue's avatar Lucas Pardue

Add Timing-script and base URI support

parent 2e643424
This diff is collapsed.
...@@ -62,6 +62,7 @@ struct Worker; ...@@ -62,6 +62,7 @@ struct Worker;
struct Config { struct Config {
std::vector<std::vector<nghttp2_nv>> nva; std::vector<std::vector<nghttp2_nv>> nva;
std::vector<std::vector<const char *>> nv; std::vector<std::vector<const char *>> nv;
std::vector<ev_tstamp> timings;
nghttp2::Headers custom_headers; nghttp2::Headers custom_headers;
std::string scheme; std::string scheme;
std::string host; std::string host;
...@@ -91,11 +92,14 @@ struct Config { ...@@ -91,11 +92,14 @@ struct Config {
uint16_t port; uint16_t port;
uint16_t default_port; uint16_t default_port;
bool verbose; bool verbose;
bool timing_script;
std::string base_uri;
Config(); Config();
~Config(); ~Config();
bool is_rate_mode() const; bool is_rate_mode() const;
bool has_base_uri() const;
}; };
struct RequestStat { struct RequestStat {
...@@ -208,6 +212,7 @@ struct Client { ...@@ -208,6 +212,7 @@ struct Client {
std::function<int(Client &)> readfn, writefn; std::function<int(Client &)> readfn, writefn;
Worker *worker; Worker *worker;
SSL *ssl; SSL *ssl;
ev_timer request_timeout_watcher;
addrinfo *next_addr; addrinfo *next_addr;
size_t reqidx; size_t reqidx;
ClientState state; ClientState state;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment