MINOR: http: use http uri parser for authority
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 6 Jul 2021 09:02:22 +0000 (11:02 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 8 Jul 2021 15:11:17 +0000 (17:11 +0200)
commit69294b20ac03497e33c99464a0050951bdfff737
tree9cd936e0a3882d38119a6208e224d2975d993a59
parent8ac8cbfd7219b5c8060ba6d7b5c76f0ec539e978
MINOR: http: use http uri parser for authority

Replace http_get_authority by the http_uri_parser API.

The new function is renamed http_parse_authority. Replace duplicated
scheme parsing code by http_parse_scheme invocation. A new
http_uri_parser state is declared to mark the authority parsing as done.
include/haproxy/http-t.h
include/haproxy/http.h
src/h1.c
src/http.c
src/http_htx.c