MINOR: uri_normalizer: Add uri_normalizer module

This is in preparation for future patches.
This commit is contained in:
Tim Duesterhus 2021-04-15 21:45:55 +02:00 committed by Christopher Faulet
parent 1615064ea0
commit dbd25c34de
3 changed files with 46 additions and 1 deletions

View File

@ -889,7 +889,7 @@ OBJS += src/mux_h2.o src/mux_fcgi.o src/http_ana.o src/stream.o \
src/hpack-enc.o src/hpack-huff.o src/ebtree.o src/base64.o \ src/hpack-enc.o src/hpack-huff.o src/ebtree.o src/base64.o \
src/hash.o src/dgram.o src/version.o src/fix.o src/mqtt.o src/dns.o \ src/hash.o src/dgram.o src/version.o src/fix.o src/mqtt.o src/dns.o \
src/server_state.o src/proto_uxdg.o src/init.o src/cfgdiag.o \ src/server_state.o src/proto_uxdg.o src/init.o src/cfgdiag.o \
src/mjson.o src/mjson.o src/uri_normalizer.o
ifneq ($(TRACE),) ifneq ($(TRACE),)
OBJS += src/calltrace.o OBJS += src/calltrace.o

View File

@ -0,0 +1,24 @@
/*
* 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_H
#define _HAPROXY_URI_NORMALIZER_H
#endif /* _HAPROXY_URI_NORMALIZER_H */
/*
* Local variables:
* c-indent-level: 8
* c-basic-offset: 8
* End:
*/

21
src/uri_normalizer.c Normal file
View File

@ -0,0 +1,21 @@
/*
* 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.
*
*/
#include <haproxy/api.h>
#include <haproxy/uri_normalizer.h>
/*
* Local variables:
* c-indent-level: 8
* c-basic-offset: 8
* End:
*/