mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-05-04 16:57:58 +00:00
MINOR: http: export the smp_fetch_cookie function
Remove the static attribute of smp_fetch_cookie, and declare the function in proto/proto_http.h for future use.
This commit is contained in:
parent
b73a9b039c
commit
07c8b24edb
@ -119,6 +119,8 @@ void free_http_req_rules(struct list *r);
|
|||||||
struct chunk *http_error_message(struct session *s, int msgnum);
|
struct chunk *http_error_message(struct session *s, int msgnum);
|
||||||
struct redirect_rule *http_parse_redirect_rule(const char *file, int linenum, struct proxy *curproxy,
|
struct redirect_rule *http_parse_redirect_rule(const char *file, int linenum, struct proxy *curproxy,
|
||||||
const char **args, char **errmsg, int use_fmt);
|
const char **args, char **errmsg, int use_fmt);
|
||||||
|
int smp_fetch_cookie(struct proxy *px, struct session *l4, void *l7, unsigned int opt,
|
||||||
|
const struct arg *args, struct sample *smp, const char *kw);
|
||||||
|
|
||||||
enum http_meth_t find_http_meth(const char *str, const int len);
|
enum http_meth_t find_http_meth(const char *str, const int len);
|
||||||
|
|
||||||
|
@ -10539,10 +10539,10 @@ smp_fetch_capture_res_ver(struct proxy *px, struct session *l4, void *l7, unsign
|
|||||||
* The cookie name is in args and the name length in args->data.str.len.
|
* The cookie name is in args and the name length in args->data.str.len.
|
||||||
* Accepts exactly 1 argument of type string. If the input options indicate
|
* Accepts exactly 1 argument of type string. If the input options indicate
|
||||||
* that no iterating is desired, then only last value is fetched if any.
|
* that no iterating is desired, then only last value is fetched if any.
|
||||||
* The returned sample is of type CSTR.
|
* The returned sample is of type CSTR. Can be used to parse cookies in other
|
||||||
|
* files.
|
||||||
*/
|
*/
|
||||||
static int
|
int smp_fetch_cookie(struct proxy *px, struct session *l4, void *l7, unsigned int opt,
|
||||||
smp_fetch_cookie(struct proxy *px, struct session *l4, void *l7, unsigned int opt,
|
|
||||||
const struct arg *args, struct sample *smp, const char *kw)
|
const struct arg *args, struct sample *smp, const char *kw)
|
||||||
{
|
{
|
||||||
struct http_txn *txn = l7;
|
struct http_txn *txn = l7;
|
||||||
|
Loading…
Reference in New Issue
Block a user