httperf
0.9.0
About: httperf is a tool for measuring web server performance.
![]() ![]() |
#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <httperf.h>
#include <http.h>
#include <call.h>
#include <event.h>
#include <conn.h>
Go to the source code of this file.
Functions | |
static int | get_line (Call *c, char **bufp, size_t *buf_lenp) |
static void | parse_status_line (Call *c, char **bufp, size_t *buf_lenp) |
static void | parse_headers (Call *c, char **bufp, size_t *buf_lenp) |
static void | parse_footers (Call *c, char **bufp, size_t *buf_lenp) |
static int | parse_data (Call *c, char **bufp, size_t *buf_lenp) |
static void | xfer_chunked (Call *c, char **bufp, size_t *buf_lenp) |
void | http_process_reply_bytes (Call *c, char **bufp, size_t *buf_lenp) |
|
static |
Definition at line 54 of file http.c.
References Call::conn, Conn::line, Conn::line_buf, and prog_name.
Referenced by parse_footers(), parse_headers(), parse_status_line(), and xfer_chunked().
void http_process_reply_bytes | ( | Call * | c, |
char ** | bufp, | ||
size_t * | buf_lenp | ||
) |
Definition at line 359 of file http.c.
References Call::conn, EV_CALL_RECV_RAW_DATA, event_signal(), parse_data(), parse_footers(), parse_headers(), parse_status_line(), prog_name, S_CLOSING, S_REPLY_CHUNKED, S_REPLY_CONTINUE, S_REPLY_DATA, S_REPLY_DONE, S_REPLY_FOOTER, S_REPLY_HEADER, S_REPLY_STATUS, Conn::state, Any_Type::vp, and xfer_chunked().
Referenced by do_recv().
|
static |
Definition at line 294 of file http.c.
References Call::conn, Call::content_bytes, Conn::content_length, EV_CALL_RECV_DATA, event_signal(), Call::reply, and Any_Type::vp.
Referenced by http_process_reply_bytes(), and xfer_chunked().
|
static |
Definition at line 265 of file http.c.
References Call::conn, EV_CALL_RECV_FOOTER, event_signal(), Call::footer_bytes, get_line(), Conn::line, Call::reply, S_CLOSING, S_REPLY_DONE, Conn::state, and Any_Type::vp.
Referenced by http_process_reply_bytes().
|
static |
Definition at line 198 of file http.c.
References Call::conn, Conn::content_length, EV_CALL_RECV_HDR, event_signal(), get_line(), Conn::has_body, Call::header_bytes, Conn::is_chunked, Conn::line, prog_name, Call::reply, S_CLOSING, S_REPLY_CHUNKED, S_REPLY_CONTINUE, S_REPLY_DATA, S_REPLY_DONE, S_REPLY_HEADER, Conn::state, and Any_Type::vp.
Referenced by http_process_reply_bytes().
|
static |
Definition at line 107 of file http.c.
References Call::conn, Conn::content_length, DBG, done(), EV_CALL_RECV_START, event_signal(), get_line(), Conn::has_body, Call::id, IE_METHOD, Call::iov, Conn::is_chunked, Any_Type::l, Conn::line, prog_name, Call::reply, Call::req, S_CLOSING, S_REPLY_CONTINUE, S_REPLY_HEADER, Conn::state, Call::status, and Call::version.
Referenced by http_process_reply_bytes().
|
static |
Definition at line 320 of file http.c.
References Call::conn, Call::content_bytes, Conn::content_length, get_line(), Conn::line, parse_data(), prog_name, Call::reply, S_CLOSING, S_REPLY_FOOTER, and Conn::state.
Referenced by http_process_reply_bytes().