Allow max HTTP redirects to be controlled YAZ-667
[yaz-moved-to-github.git] / include / yaz / zgdu.h
index 40bb12e..38f4df3 100644 (file)
@@ -76,14 +76,18 @@ 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 void z_HTTP_header_set(ODR o, Z_HTTP_Header **hp, const char *n,
+                                  const char *v);
 YAZ_EXPORT void z_HTTP_header_add_content_type(ODR o, Z_HTTP_Header **hp,
                                                const char *content_type,
                                                const char *charset);
 YAZ_EXPORT void z_HTTP_header_add_basic_auth(ODR o, Z_HTTP_Header **hp,
                                              const char *username,
                                              const char *password);
-
-YAZ_EXPORT const char *z_HTTP_header_lookup(const Z_HTTP_Header *hp, const char *n);
+YAZ_EXPORT const char *z_HTTP_header_lookup(const Z_HTTP_Header *hp,
+                                            const char *n);
+YAZ_EXPORT const char *z_HTTP_header_remove(Z_HTTP_Header **hp,
+                                            const char *n);
 
 YAZ_EXPORT const char *z_HTTP_errmsg(int code);