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

Pax | Switching key to u8 and update on Pax header doc header #391

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

Conversation

gwitrand-ovh
Copy link
Contributor

Following PR #382 comments

@gwitrand-ovh
Copy link
Contributor Author

This might not be recommended since key() converts the key into str.

Writing the key through str might me more straight forward in the long run
image

@@ -156,7 +156,7 @@ impl<T: Write> crate::Builder<T> {
/// Returns io::Error if an error occurs, else it returns ()
pub fn append_pax_extensions<'key, 'value>(
&mut self,
headers: impl IntoIterator<Item = (&'key str, &'value [u8])>,
headers: impl IntoIterator<Item = (&'key [u8], &'value [u8])>,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Unfortunately we already published the previous PR, we can't break the API. We could add a new one...but I'm not sure, maybe we only do it if there's an actual use case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it's better like that I think.
If needed one day, this PR could be merged to fix the issue later

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.

2 participants