-
Notifications
You must be signed in to change notification settings - Fork 175
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
[Proposal] Base64 urlencoding and omitting padding options #1156
base: main
Are you sure you want to change the base?
Conversation
224136d
to
e38461d
Compare
extension Data.Base64EncodingOptions { | ||
/// Use the base64url alphabet to encode the data | ||
@available(FoundationPreview 6.2, *) | ||
public static var base64UrlAlphabet: Base64EncodingOptions { get } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spelling nitpick - I think this should be capitalized like base64URLAlphabet
(same for others that use URL).
e38461d
to
777ce4c
Compare
@swift-ci please test |
/// | ||
/// The decoding will fail if any other invalid character is found in the encoded data. | ||
@available(FoundationPreview 6.2, *) | ||
public static var ignoreWhitespaceCharacters: Base64EncodingOptions { get } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please fix the name scope here (encoding options vs decoding options and the extension they belong)
No description provided.