Skip to content
Discussion options

You must be logged in to vote

Thanks @shenanigansd, really good question.

  • _urlparse is not public API and direct usage is not currently supported.
  • Using the complete URL string, or httpx.URL("https://www.example.com/", query=b"test=$%24 %20+")* is a good approach if you need to be precise about what escaping style you want. This will only percent encode the query portion where spec-required. (Using params={...} will always give you HTML form-like behavior. There's some docs work to be done here.)

* Actually I'm unkeen on having chosen bytes for that interface, but there's a more involved discussion there to be had at a later date.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by shenanigansd
Comment options

You must be logged in to vote
3 replies
@lovelydinosaur
Comment options

@aw-was-here
Comment options

@lovelydinosaur
Comment options

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