2 * Copyright (C) 1995-2005, Index Data ApS
3 * See the file LICENSE for details.
5 * $Id: zgdu.h,v 1.4 2005-01-15 19:47:10 adam Exp $
10 * \brief Header for the Z_GDU (HTTP or Z39.50 package)
16 #include <yaz/z-core.h>
20 typedef struct Z_HTTP_Header Z_HTTP_Header;
22 struct Z_HTTP_Header {
32 Z_HTTP_Header *headers;
40 Z_HTTP_Header *headers;
46 #define Z_GDU_HTTP_Request 2
47 #define Z_GDU_HTTP_Response 3
52 Z_HTTP_Request *HTTP_Request;
53 Z_HTTP_Response *HTTP_Response;
56 YAZ_EXPORT int z_GDU (ODR o, Z_GDU **p, int opt, const char *name);
57 YAZ_EXPORT void z_HTTP_header_add(ODR o, Z_HTTP_Header **hp, const char *n,
59 YAZ_EXPORT const char *z_HTTP_header_lookup(Z_HTTP_Header *hp, const char *n);
61 YAZ_EXPORT const char *z_HTTP_errmsg(int code);
63 YAZ_EXPORT Z_GDU *z_get_HTTP_Response(ODR o, int code);
64 YAZ_EXPORT Z_GDU *z_get_HTTP_Request(ODR o);