git.iko.soy/typeable/servant
on inserting_doc_NamedRoutes help sign in
11 lines 507 B history raw
1synopsis: Derive HasClient good response status from Verb status
2prs: #1469
3description: {
4`HasClient` instances for the `Verb` datatype use `runRequest` in
5`clientWithRoute` definitions.
6This means that a request performed with `runClientM` will be successful if and
7only if the endpoint specify a response status code >=200 and <300.
8This change replaces `runRequest` with `runRequestAcceptStatus` in `Verb`
9instances for the `HasClient` class, deriving the good response status from
10the `Verb` status.