Details
-
Wish
-
Status: Accepted
-
Minor
-
Resolution: Unresolved
-
None
-
None
Description
A `process::http::URL` instance has its query strings stored in a hashmap. Stringifying the instance will use the order defined by the hash function to order the query strings. This order depends on the concrete implementation of the hash function.
A well defined query string order (e.g. in alphabetical order) may be important for bot detection. If the query strings should be in an alphabetic order, multiple solutions are possible:
1. Use map instead of hashmap for defining query string in URLs
2. Order the query strings while creating the URL string
3. Provide an own string hash function that guarantees a certain order