servant/servant-client-core/src/Servant/Client/Core
Gaël Deest 658217b021 Use toEncodedUrlPiece directly when encoding captures
Current implementation of captures uses the `toUrlPiece` method from the
`ToHttpApiData` typeclass, and encodes the resulting `Text` using `toEncodedUrlPiece`
when appending to the request path.

The problem with this approach is that the instance for `Text` percent-encodes
characters that are perfectly valid in URLs, such as `*`.

This patch makes direct use of `toEncodedUrlPiece`, which lets users implement
encoding according to their needs.

Closes #1511
2022-03-21 17:29:23 +01:00
..
Auth.hs Refactor servant-client-core 2019-02-18 19:08:13 +02:00
BaseUrl.hs Refactor servant-client-core 2019-02-18 19:08:13 +02:00
BasicAuth.hs unsupporting GHC < 8.6.5, removing unecessary imports 2021-10-02 13:13:24 +02:00
ClientError.hs Rename ServantError to ClientError, ServantErr to ServerError 2019-02-18 22:51:09 +02:00
HasClient.hs Use toEncodedUrlPiece directly when encoding captures 2022-03-21 17:29:23 +01:00
Internal.hs Refactor servant-client-core 2019-02-18 19:08:13 +02:00
Reexport.hs Add parameter-supplying operator 2021-11-18 10:11:45 +01:00
Request.hs Use toEncodedUrlPiece directly when encoding captures 2022-03-21 17:29:23 +01:00
Response.hs Refactor servant-client-core 2019-02-18 19:08:13 +02:00
RunClient.hs union verbs (#1314) 2020-10-31 20:45:46 +01:00