diff --git a/.release-notes/106.md b/.release-notes/106.md index 128fe95..3615e9a 100644 --- a/.release-notes/106.md +++ b/.release-notes/106.md @@ -6,6 +6,7 @@ makes it more clear, that the client will use the same handler for all requests. The old version would look similar to this: + ```pony let client = HTTPClient(auth) @@ -15,8 +16,9 @@ let handler_factory = ... client(payload, handler_factory)? // Even later -client(other_payload, ohter_factory) +client(other_payload, other_factory) ``` + In the new version the handler factory needs to be supplied at the creation of the client: