int http_replace_header_value(struct htx *htx, struct http_hdr_ctx *ctx, const struct ist data);
int http_replace_header(struct htx *htx, struct http_hdr_ctx *ctx, const struct ist name, const struct ist value);
int http_remove_header(struct htx *htx, struct http_hdr_ctx *ctx);
+int http_update_authority(struct htx *htx, struct htx_sl *sl, const struct ist host);
+int http_update_host(struct htx *htx, struct htx_sl *sl, const struct ist uri);
+
unsigned int http_get_htx_hdr(const struct htx *htx, const struct ist hdr,
int occ, struct http_hdr_ctx *ctx, char **vptr, size_t *vlen);
unsigned int http_get_htx_fhdr(const struct htx *htx, const struct ist hdr,
struct list list; /* next conf_errors */
};
-static int http_update_authority(struct htx *htx, struct htx_sl *sl, const struct ist host);
-static int http_update_host(struct htx *htx, struct htx_sl *sl, const struct ist uri);
-
/* Returns the next unporocessed start line in the HTX message. It returns NULL
* if the start-line is undefined (first == -1). Otherwise, it returns the
* pointer on the htx_sl structure.
* contains an authority. Thus, if no authority is found in the uri, an error is
* returned.
*/
-static int http_update_authority(struct htx *htx, struct htx_sl *sl, const struct ist host)
+int http_update_authority(struct htx *htx, struct htx_sl *sl, const struct ist host)
{
struct buffer *temp = get_trash_chunk();
struct ist meth, vsn, uri, authority;
* authority is used to set the value of the header host. This function returns
* 0 on failure and 1 on success.
*/
-static int http_update_host(struct htx *htx, struct htx_sl *sl, const struct ist uri)
+int http_update_host(struct htx *htx, struct htx_sl *sl, const struct ist uri)
{
struct ist authority;
struct http_hdr_ctx ctx;