66 #define Z_GDU_HTTP_Request 2
67 #define Z_GDU_HTTP_Response 3
82 const char *content_type,
86 const char *password);
98 int code,
const char *details,
100 const char *server_url);
114 const char *location,
int *host_change);
Z_HTTP_Request * HTTP_Request
Z_HTTP_Response * HTTP_Response
ASN.1 Module Z39-50-APDU-1995.
Z_GDU * z_get_HTTP_Response(ODR o, int code)
int yaz_decode_http_request(ODR o, Z_HTTP_Request **hr_p)
Z_GDU * z_get_HTTP_Request(ODR o)
const char * z_HTTP_errmsg(int code)
int yaz_encode_http_request(ODR o, Z_HTTP_Request *hr)
const char * z_HTTP_header_lookup(const Z_HTTP_Header *hp, const char *n)
Z_GDU * z_get_HTTP_Request_uri(ODR odr, const char *uri, const char *args, int use_full_uri)
void z_HTTP_header_add_basic_auth(ODR o, Z_HTTP_Header **hp, const char *username, const char *password)
Z_GDU * z_get_HTTP_Response_server(ODR o, int code, const char *details, const char *server, const char *server_url)
int yaz_decode_http_response(ODR o, Z_HTTP_Response **hr_p)
void z_HTTP_header_set(ODR o, Z_HTTP_Header **hp, const char *n, const char *v)
int yaz_encode_http_response(ODR o, Z_HTTP_Response *hr)
const char * z_HTTP_header_remove(Z_HTTP_Header **hp, const char *n)
const char * yaz_check_location(ODR odr, const char *uri, const char *location, int *host_change)
Z_GDU * z_get_HTTP_Response_details(ODR o, int code, const char *details)
Z_GDU * z_get_HTTP_Request_host_path(ODR odr, const char *host, const char *path)
int z_GDU(ODR o, Z_GDU **p, int opt, const char *name)
void z_HTTP_header_add(ODR o, Z_HTTP_Header **hp, const char *n, const char *v)
void z_HTTP_header_add_content_type(ODR o, Z_HTTP_Header **hp, const char *content_type, const char *charset)