Document the change in the default values of disk cache permissions.
[polipo.git] / client.h
blobb6d6e5d596604ec71b79d663bb9e8bd430cdd877
1 /*
2 Copyright (c) 2003-2006 by Juliusz Chroboczek
4 Permission is hereby granted, free of charge, to any person obtaining a copy
5 of this software and associated documentation files (the "Software"), to deal
6 in the Software without restriction, including without limitation the rights
7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 copies of the Software, and to permit persons to whom the Software is
9 furnished to do so, subject to the following conditions:
11 The above copyright notice and this permission notice shall be included in
12 all copies or substantial portions of the Software.
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20 THE SOFTWARE.
23 int httpAccept(int, FdEventHandlerPtr, AcceptRequestPtr);
24 void httpClientFinish(HTTPConnectionPtr connection, int s);
25 int httpClientHandler(int, FdEventHandlerPtr, StreamRequestPtr);
26 int httpClientNoticeError(HTTPRequestPtr, int code, struct _Atom *message);
27 int httpClientError(HTTPRequestPtr, int code, struct _Atom *message);
28 int httpClientNewError(HTTPConnectionPtr, int method, int persist,
29 int code, struct _Atom *message);
30 int httpClientRawError(HTTPConnectionPtr, int, struct _Atom*, int close);
31 int httpErrorStreamHandler(int status,
32 FdEventHandlerPtr event,
33 StreamRequestPtr request);
34 int httpErrorNocloseStreamHandler(int status,
35 FdEventHandlerPtr event,
36 StreamRequestPtr request);
37 int httpErrorNofinishStreamHandler(int status,
38 FdEventHandlerPtr event,
39 StreamRequestPtr request);
40 int httpClientRequest(HTTPRequestPtr request, AtomPtr url);
41 int httpClientRequestContinue(int forbidden_code, AtomPtr url,
42 AtomPtr forbidden_message,
43 AtomPtr forbidden_headers,
44 void *closure);
45 int httpClientDiscardBody(HTTPConnectionPtr connection);
46 int httpClientDiscardHandler(int, FdEventHandlerPtr, StreamRequestPtr);
47 int httpClientGetHandler(int, ConditionHandlerPtr);
48 int httpClientHandlerHeaders(FdEventHandlerPtr event,
49 StreamRequestPtr request,
50 HTTPConnectionPtr connection);
51 int httpClientNoticeRequest(HTTPRequestPtr request, int);
52 int httpServeObject(HTTPConnectionPtr);
53 int delayedHttpServeObject(HTTPConnectionPtr connection);
54 int httpServeObjectStreamHandler(int status,
55 FdEventHandlerPtr event,
56 StreamRequestPtr request);
57 int httpServeObjectStreamHandler2(int status,
58 FdEventHandlerPtr event,
59 StreamRequestPtr request);
60 int httpServeObjectHandler(int, ConditionHandlerPtr);
61 int httpClientSideRequest(HTTPRequestPtr request);
62 int httpClientSideHandler(int status,
63 FdEventHandlerPtr event,
64 StreamRequestPtr srequest);