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

Can we use 1 and 0 for TRUE and FALSE to reduce wire size? #116

Open
wilaw opened this issue Nov 16, 2023 · 2 comments
Open

Can we use 1 and 0 for TRUE and FALSE to reduce wire size? #116

wilaw opened this issue Nov 16, 2023 · 2 comments

Comments

@wilaw
Copy link
Contributor

wilaw commented Nov 16, 2023

This would apply for all keys which carry BOOLEAN values.

@wilaw
Copy link
Contributor Author

wilaw commented Nov 16, 2023

Invalid request since BOOLEAN MUST omit that value when serialized.

@littlespex
Copy link

littlespex commented Nov 16, 2023

true values are omitted, false values are already compacted as ?0.

Parameters whose value is Boolean (see Section 3.3.6) true MUST omit that value when serialized. For example, the "a" parameter here is true, while the "b" parameter is false:

Example-Integer: 1; a; b=?0

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

No branches or pull requests

2 participants