mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 08:18:15 +03:00
4c174dcda0
Summary: Previously, it was only possible to register event listeners for request completion on the `HttpClient` itself, rather than on individual `Request`s. This diff adds similar event listeners to `Request`s themselves, so that its possible to register a callback to fire when any request completes, regardless of whether it was sent via an `HttpClient` or as a one-off. This is similar to `RequestCreationEventListeners`, which run for the creation of every request, whether or not the request is associated with a client. Notably, to avoid circular references the new event listeners take a `RequestInfo` argument instead of a `RequestContext` (since the listeners are themselves stored inside the `RequestContext`). In practice, the `RequestInfo` should contain all of the information one might want to access about the request. Reviewed By: quark-zju Differential Revision: D30831840 fbshipit-source-id: 77ca9dc5fd9f8fc5ee60319baabd77171af70d45 |
||
---|---|---|
.. | ||
fs | ||
hg-server | ||
integration | ||
locale | ||
mononoke | ||
scm | ||
test_support | ||
test-data | ||
.gitignore | ||
Eden.project.toml |