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

Test parse_url_opts for HTTP (#5310) #5316

Merged
merged 2 commits into from
Jan 20, 2024

Conversation

tustvold
Copy link
Contributor

Which issue does this PR close?

Closes #5310

Rationale for this change

Follow up to #5311

What changes are included in this PR?

Are there any user-facing changes?

@github-actions github-actions bot added the object-store Object Store Interface label Jan 20, 2024
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

👌 - thanks for working on this @tustvold

The code looks good to me but I think this would be much improved with some additional documentation too

Response::new(Body::empty())
});

let test = format!("{}/foo/bar", server.url());
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we also please document this test to explain the intent (which is that some options are passed as http headers?)

Also, would it be possible to document the behavior on parse_url_opts -- it doesn't mention anything about this behavior in the documentation that I can find:

https://docs.rs/object_store/latest/object_store/fn.parse_url_opts.html

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will roll this into #5274

@tustvold tustvold merged commit b03613e into apache:master Jan 20, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
object-store Object Store Interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pass Options to HttpBuilder in parse_url_opts
2 participants