Annotation of parser3/src/include/pa_http.h, revision 1.12

1.1       paf         1: /** @file
                      2:        Parser: commonly used functions.
                      3: 
1.7       moko        4:        Copyright (c) 2001-2012 Art. Lebedev Studio (http://www.artlebedev.com)
1.1       paf         5:        Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
                      6: */
                      7: 
                      8: #ifndef PA_HTTP_H
                      9: #define PA_HTTP_H
                     10: 
1.12    ! moko       11: #define IDENT_PA_HTTP_H "$Id: pa_http.h,v 1.11 2013/03/11 05:51:09 misha Exp $"
1.1       paf        12: 
                     13: #include "pa_vstring.h"
                     14: #include "pa_vint.h"
                     15: #include "pa_vhash.h"
                     16: #include "pa_vtable.h"
                     17: #include "pa_socks.h"
1.10      misha      18: #include "pa_request.h"
1.1       paf        19: 
1.11      misha      20: #define HTTP_COOKIES_NAME "cookies"
1.12    ! moko       21: 
1.8       moko       22: #ifdef WIN32
                     23: #include <windows.h>
                     24: #endif
                     25: 
1.12    ! moko       26: #ifndef _MSC_VER
1.8       moko       27: #define closesocket close
1.1       paf        28: #endif
                     29: 
                     30: #ifndef DOXYGEN
                     31: struct File_read_http_result {
                     32:        char *str; size_t length;
                     33:        HashStringValue* headers;
                     34: }; 
                     35: #endif
                     36: 
1.9       misha      37: Table* parse_cookies(Request& r, Table *cookies);
                     38: 
1.6       moko       39: char *pa_http_safe_header_name(const char *name);
                     40: 
1.4       misha      41: File_read_http_result pa_internal_file_read_http(Request& r, 
1.3       misha      42:                                                const String& file_spec, 
                     43:                                                bool as_text,
1.2       misha      44:                                                HashStringValue *options=0,
                     45:                                                bool transcode_text_result=true);
1.1       paf        46: 
                     47: #endif

E-mail: