2 * Copyright (C) 1995-2005, Index Data ApS
3 * See the file LICENSE for details.
5 * $Id: zgdu.h,v 1.6 2006-03-01 23:24:25 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 void z_HTTP_header_add_content_type(ODR o, Z_HTTP_Header **hp,
60 const char *content_type,
63 YAZ_EXPORT const char *z_HTTP_header_lookup(Z_HTTP_Header *hp, const char *n);
65 YAZ_EXPORT const char *z_HTTP_errmsg(int code);
67 YAZ_EXPORT Z_GDU *z_get_HTTP_Response(ODR o, int code);
68 YAZ_EXPORT Z_GDU *z_get_HTTP_Request(ODR o);
76 * indent-tabs-mode: nil
78 * vim: shiftwidth=4 tabstop=8 expandtab