elastic / elasticsearch-rs

Official Elasticsearch Rust Client
https://www.elastic.co/guide/en/elasticsearch/client/rust-api/current/index.html
Apache License 2.0
705 stars 72 forks source link

Encode values passed to Parts enums #95

Closed russcam closed 4 years ago

russcam commented 4 years ago

This commit updates the api_generator to emit code to percent encode values passed to Parts enums when calling the url() function. A value passed to a Part may be one that, if left unencoded, would be interpreted differently by the HTTP client e.g. a # (start of Fragment identifier) or ? (start of Query identifier).