Annotation of parser3/src/include/pa_http.h, revision 1.3
1.1 paf 1: /** @file
2: Parser: commonly used functions.
3:
4: Copyright (c) 2001-2005 ArtLebedev Group (http://www.artlebedev.com)
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.3 ! misha 11: static const char * const IDENT_HTTP_H="$Date: 2008-06-11 11:38:18 $";
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:
19: #ifdef CYGWIN
20: #define _GNU_H_WINDOWS32_SOCKETS
21: // for PASCAL
22: #include <windows.h>
23: // SOCKET
24: typedef u_int SOCKET;
25: int PASCAL closesocket(SOCKET);
26: #else
27: # if defined(WIN32)
28: # include <windows.h>
29: # else
30: # define closesocket close
31: # endif
32: #endif
33:
34: const char* pa_form2string(HashStringValue& form);
35: #ifndef DOXYGEN
36: struct File_read_http_result {
37: char *str; size_t length;
38: HashStringValue* headers;
39: };
40: #endif
41:
42: File_read_http_result pa_internal_file_read_http(Request_charsets& charsets,
1.3 ! misha 43: const String& file_spec,
! 44: bool as_text,
1.2 misha 45: HashStringValue *options=0,
46: bool transcode_text_result=true);
1.1 paf 47:
48: #endif
E-mail: