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.2 2003-12-04 11:46:36 adam Exp $
11 #include <yaz/z-core.h>
15 typedef struct Z_HTTP_Header Z_HTTP_Header;
17 struct Z_HTTP_Header {
27 Z_HTTP_Header *headers;
35 Z_HTTP_Header *headers;
41 #define Z_GDU_HTTP_Request 2
42 #define Z_GDU_HTTP_Response 3
47 Z_HTTP_Request *HTTP_Request;
48 Z_HTTP_Response *HTTP_Response;
51 YAZ_EXPORT int z_GDU (ODR o, Z_GDU **p, int opt, const char *name);
52 YAZ_EXPORT void z_HTTP_header_add(ODR o, Z_HTTP_Header **hp, const char *n,
54 YAZ_EXPORT const char *z_HTTP_header_lookup(Z_HTTP_Header *hp, const char *n);
56 YAZ_EXPORT const char *z_HTTP_errmsg(int code);
58 YAZ_EXPORT Z_GDU *z_get_HTTP_Response(ODR o, int code);
59 YAZ_EXPORT Z_GDU *z_get_HTTP_Request(ODR o);