Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
cd475822
Commit
cd475822
authored
Jul 31, 2015
by
Lucas Pardue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Timing-script and base URI support
parent
2e643424
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
210 additions
and
39 deletions
+210
-39
src/h2load.cc
src/h2load.cc
+205
-39
src/h2load.h
src/h2load.h
+5
-0
No files found.
src/h2load.cc
View file @
cd475822
This diff is collapsed.
Click to expand it.
src/h2load.h
View file @
cd475822
...
...
@@ -62,6 +62,7 @@ struct Worker;
struct
Config
{
std
::
vector
<
std
::
vector
<
nghttp2_nv
>>
nva
;
std
::
vector
<
std
::
vector
<
const
char
*>>
nv
;
std
::
vector
<
ev_tstamp
>
timings
;
nghttp2
::
Headers
custom_headers
;
std
::
string
scheme
;
std
::
string
host
;
...
...
@@ -91,11 +92,14 @@ struct Config {
uint16_t
port
;
uint16_t
default_port
;
bool
verbose
;
bool
timing_script
;
std
::
string
base_uri
;
Config
();
~
Config
();
bool
is_rate_mode
()
const
;
bool
has_base_uri
()
const
;
};
struct
RequestStat
{
...
...
@@ -208,6 +212,7 @@ struct Client {
std
::
function
<
int
(
Client
&
)
>
readfn
,
writefn
;
Worker
*
worker
;
SSL
*
ssl
;
ev_timer
request_timeout_watcher
;
addrinfo
*
next_addr
;
size_t
reqidx
;
ClientState
state
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment