Currently contains only the default HTTP port definitions that used to be
private to the client.
http-server.c
headers = \
+ http-common.h \
http-date.h \
http-url.h \
http-parser.h \
* Defaults
*/
-#define HTTP_DEFAULT_PORT 80
-#define HTTPS_DEFAULT_PORT 443
-
#define HTTP_CLIENT_CONTINUE_TIMEOUT_MSECS (1000*2)
#define HTTP_CLIENT_DEFAULT_REQUEST_TIMEOUT_MSECS (1000*60*1)
#define HTTP_CLIENT_DEFAULT_DNS_LOOKUP_TIMEOUT_MSECS (1000*10)
#include "http-client-private.h"
-#define HTTP_DEFAULT_PORT 80
-#define HTTPS_DEFAULT_PORT 443
-
/* Structure:
http_client_context:
#include "net.h"
+#include "http-common.h"
#include "http-response.h"
struct timeval;
--- /dev/null
+#ifndef HTTP_COMMON_H
+#define HTTP_COMMON_H
+
+#define HTTP_DEFAULT_PORT 80
+#define HTTPS_DEFAULT_PORT 443
+
+#endif
#ifndef HTTP_SERVER_H
#define HTTP_SERVER_H
+#include "http-common.h"
#include "http-auth.h"
#include "http-request.h"