X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Fzgdu.h;h=dd092452ab8b58372d05aab030286d702ce0d260;hb=caa5ae948706a481006e6d8d2abea24dec56b672;hp=4579e008dab12e663bcd99a905fcc58e468a6424;hpb=4c176312acdc3444c9afc820f76a393e64668e52;p=yaz-moved-to-github.git diff --git a/include/yaz/zgdu.h b/include/yaz/zgdu.h index 4579e00..dd09245 100644 --- a/include/yaz/zgdu.h +++ b/include/yaz/zgdu.h @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: zgdu.h,v 1.4 2005-01-15 19:47:10 adam Exp $ + * $Id: zgdu.h,v 1.8 2006-09-14 07:39:49 marc Exp $ */ /** @@ -56,13 +56,28 @@ typedef struct { YAZ_EXPORT int z_GDU (ODR o, Z_GDU **p, int opt, const char *name); YAZ_EXPORT void z_HTTP_header_add(ODR o, Z_HTTP_Header **hp, const char *n, const char *v); -YAZ_EXPORT const char *z_HTTP_header_lookup(Z_HTTP_Header *hp, const char *n); +YAZ_EXPORT void z_HTTP_header_add_content_type(ODR o, Z_HTTP_Header **hp, + const char *content_type, + const char *charset); + +YAZ_EXPORT const char *z_HTTP_header_lookup(const Z_HTTP_Header *hp, const char *n); YAZ_EXPORT const char *z_HTTP_errmsg(int code); YAZ_EXPORT Z_GDU *z_get_HTTP_Response(ODR o, int code); YAZ_EXPORT Z_GDU *z_get_HTTP_Request(ODR o); +YAZ_EXPORT Z_GDU *z_get_HTTP_Request_host_path(ODR odr, + const char *host, + const char *path); YAZ_END_CDECL #endif +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +