Annotation of parser3/src/include/pa_http.h, revision 1.8
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.8 ! moko 11: #define IDENT_PA_HTTP_H "$Id: pa_http.h,v 1.7 2012-03-16 09:24:09 moko 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"
18:
1.8 ! moko 19: #ifdef WIN32
! 20: #include <windows.h>
! 21:
1.1 paf 22: #ifdef CYGWIN
1.8 ! moko 23: typedef u_int SOCKET;
! 24: extern "C" int PASCAL FAR closesocket(SOCKET);
! 25: #endif
! 26:
! 27: #else // WIN32
! 28: #define closesocket close
1.1 paf 29: #endif
30:
31: #ifndef DOXYGEN
32: struct File_read_http_result {
33: char *str; size_t length;
34: HashStringValue* headers;
35: };
36: #endif
37:
1.6 moko 38: char *pa_http_safe_header_name(const char *name);
39:
1.4 misha 40: File_read_http_result pa_internal_file_read_http(Request& r,
1.3 misha 41: const String& file_spec,
42: bool as_text,
1.2 misha 43: HashStringValue *options=0,
44: bool transcode_text_result=true);
1.1 paf 45:
46: #endif
E-mail: