From 949a8d0b46d6baa9f42c2f8c3bd5e3bdc3596cbd Mon Sep 17 00:00:00 2001 From: m0gg Date: Sun, 19 Nov 2006 09:40:14 +0000 Subject: nanohttp admin patch; code cleanup --- nanohttp/nanohttp-request.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'nanohttp/nanohttp-request.h') diff --git a/nanohttp/nanohttp-request.h b/nanohttp/nanohttp-request.h index 03cea1e..d34466a 100755 --- a/nanohttp/nanohttp-request.h +++ b/nanohttp/nanohttp-request.h @@ -1,5 +1,5 @@ /****************************************************************** - * $Id: nanohttp-request.h,v 1.7 2006/03/06 13:37:38 m0gg Exp $ + * $Id: nanohttp-request.h,v 1.8 2006/11/19 09:40:14 m0gg Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003-2004 Ferhat Ayaz @@ -24,8 +24,12 @@ #ifndef NANO_HTTP_REQUEST_H #define NANO_HTTP_REQUEST_H -#include -#include +struct request_statistics +{ + unsigned long bytes_transmitted; + unsigned long bytes_received; + struct timeval time; +}; /* request object @@ -39,6 +43,8 @@ typedef struct hrequest hpair_t *query; hpair_t *header; + struct request_statistics *statistics; + http_input_stream_t *in; content_type_t *content_type; attachments_t *attachments; -- cgit v1.1-32-gdbae