mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 22:01:31 +02:00
MINOR: uri_normalizer: Add enum uri_normalizer_err
This enum will serve as the return type for each normalizer.
This commit is contained in:
parent
dbd25c34de
commit
0ee1ad5675
31
include/haproxy/uri_normalizer-t.h
Normal file
31
include/haproxy/uri_normalizer-t.h
Normal file
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* include/haproxy/uri_normalizer.h
|
||||
* HTTP request URI normalization.
|
||||
*
|
||||
* Copyright 2021 Tim Duesterhus <tim@bastelstu.be>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version
|
||||
* 2 of the License, or (at your option) any later version.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _HAPROXY_URI_NORMALIZER_T_H
|
||||
#define _HAPROXY_URI_NORMALIZER_T_H
|
||||
|
||||
enum uri_normalizer_err {
|
||||
URI_NORMALIZER_ERR_NONE = 0,
|
||||
URI_NORMALIZER_ERR_ALLOC,
|
||||
URI_NORMALIZER_ERR_INVALID_INPUT,
|
||||
URI_NORMALIZER_ERR_INTERNAL_ERROR = 0xdead,
|
||||
};
|
||||
|
||||
#endif /* _HAPROXY_URI_NORMALIZER_T_H */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
* c-indent-level: 8
|
||||
* c-basic-offset: 8
|
||||
* End:
|
||||
*/
|
@ -14,6 +14,8 @@
|
||||
#ifndef _HAPROXY_URI_NORMALIZER_H
|
||||
#define _HAPROXY_URI_NORMALIZER_H
|
||||
|
||||
#include <haproxy/uri_normalizer-t.h>
|
||||
|
||||
#endif /* _HAPROXY_URI_NORMALIZER_H */
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user