2 * Copyright (c) 1998-2003, Index Data
3 * See the file LICENSE for details.
4 * Sebastian Hammer, Adam Dickmeiss
6 * $Id: zgdu.h,v 1.1 2003-02-21 12:08:58 adam Exp $
11 #include <yaz/z-core.h>
13 typedef struct Z_HTTP_Header Z_HTTP_Header;
15 struct Z_HTTP_Header {
25 Z_HTTP_Header *headers;
33 Z_HTTP_Header *headers;
39 #define Z_GDU_HTTP_Request 2
40 #define Z_GDU_HTTP_Response 3
45 Z_HTTP_Request *HTTP_Request;
46 Z_HTTP_Response *HTTP_Response;
49 YAZ_EXPORT int z_GDU (ODR o, Z_GDU **p, int opt, const char *name);
50 YAZ_EXPORT void z_HTTP_header_add(ODR o, Z_HTTP_Header **hp, const char *n,
52 YAZ_EXPORT const char *z_HTTP_header_lookup(Z_HTTP_Header *hp, const char *n);
54 YAZ_EXPORT const char *z_HTTP_errmsg(int code);
56 YAZ_EXPORT Z_GDU *z_get_HTTP_Response(ODR o, int code);
57 YAZ_EXPORT Z_GDU *z_get_HTTP_Request(ODR o);