diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-11 13:50:17 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-11 13:50:17 +0000 |
commit | be333bcd20ec9f6ce27075e71c4952f8bd626d4f (patch) | |
tree | fcf11ae1b94cd3d06606af5de36a0120f82161d3 /src/libutil/http.h | |
parent | 53ab3de17aed083910e2d6df4de96aafbcce97db (diff) | |
download | rspamd-be333bcd20ec9f6ce27075e71c4952f8bd626d4f.tar.gz rspamd-be333bcd20ec9f6ce27075e71c4952f8bd626d4f.zip |
[Feature] Add CORS support to the controller
Diffstat (limited to 'src/libutil/http.h')
-rw-r--r-- | src/libutil/http.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libutil/http.h b/src/libutil/http.h index 3bad64ae2..3f5288eca 100644 --- a/src/libutil/http.h +++ b/src/libutil/http.h @@ -469,6 +469,14 @@ void rspamd_http_router_add_header (struct rspamd_http_connection_router *router const gchar *name, const gchar *value); /** + * Sets method to handle unknown request methods + * @param router + * @param handler + */ +void rspamd_http_router_set_unknown_handler (struct rspamd_http_connection_router *router, + rspamd_http_router_handler_t handler); + +/** * Inserts router headers to the outbound message * @param router * @param msg |