mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-08 23:33:32 +02:00
Implement proper encoding of HTTP/3 authority pseudo-header during request transcoding on the backend side. A pseudo-header :authority is encoded if a value can be extracted from HTX start-line. A special check is also implemented to ensure that a host header is not encoded if :authority already is. A new function qpack_encode_auth() is defined to implement QPACK encoding of :authority header using literal field line with name ref.
18 lines
643 B
C
18 lines
643 B
C
#ifndef QPACK_ENC_H_
|
|
#define QPACK_ENC_H_
|
|
|
|
#include <haproxy/http-t.h>
|
|
#include <haproxy/istbuf.h>
|
|
|
|
struct buffer;
|
|
|
|
int qpack_encode_field_section_line(struct buffer *out);
|
|
int qpack_encode_int_status(struct buffer *out, unsigned int status);
|
|
int qpack_encode_method(struct buffer *out, enum http_meth_t meth, struct ist other);
|
|
int qpack_encode_scheme(struct buffer *out, const struct ist scheme);
|
|
int qpack_encode_path(struct buffer *out, const struct ist path);
|
|
int qpack_encode_auth(struct buffer *out, const struct ist auth);
|
|
int qpack_encode_header(struct buffer *out, const struct ist n, const struct ist v);
|
|
|
|
#endif /* QPACK_ENC_H_ */
|