Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HttpProtocol enum and http_protocol field to Message#21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

edmonds
Copy link
Member

@edmonds edmonds commented Mar 19, 2024

This commit adds a new HttpProtocol enum that represents HTTP versions and adds an optional http_protocol field to the Message message. This allows specifying the particular HTTP version used if the DOH protocol is in use.

Hypothetically, this field could be used in the future to specify the HTTP version in use for an HTTP-based DNS transport protocol that is not the currently existing RFC 8484 DOH protocol. However, at the time of this writing none of the other currently defined dnstap SocketProtocol values are HTTP-based transports, so the http_protocol field should only be set if socket_protocol is set to DOH. Otherwise, the http_protocol field should be left unset.

This commit adds a new `HttpProtocol` enum that represents HTTP versions
and adds an optional `http_protocol` field to the `Message` message.
This allows specifying the particular HTTP version used if the DOH
protocol is in use.

Hypothetically, this field could be used in the future to specify the
HTTP version in use for an HTTP-based DNS transport protocol that is not
the currently existing RFC 8484 DOH protocol. However, at the time of
this writing none of the other currently defined dnstap `SocketProtocol`
values are HTTP-based transports, so the `http_protocol` field
should only be set if `socket_protocol` is set to DOH. Otherwise, the
`http_protocol` field should be left unset.
@edmonds
Copy link
Member Author

edmonds commented Mar 19, 2024

This addresses #20.

Copy link
Contributor

@rgacogne rgacogne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me (DNSdist developer here), thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants