-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tracking signals for getting request/response bodies. (#2767)
* Add tracking signals for getting request/response bodies. * Revert automatic pep8 fix. Mark pep8 rules E225 and E226 as ignored, to prevent automatic changes in code formating. * Remove internal usage of Signal in favor of simple callbacks. * Document new signals * Move callback to a private method. * Make check more idiomatic * Reorder classes in __all__ * Update request lifecycle diagram to include new signals * Don't use mutable defaults for traces. Make it private in ClientRequest * Further updates to tracing documentation * Polish docs * Revert ignoring pep8 rules * Subtle optimisation - don't create list instance if not needed * Remove assert statement * Add test case ensuring StreamWriter calls callback * Add test checking that response.read() trigger trace callback * Add CHANGES record
- Loading branch information
Showing
10 changed files
with
223 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add tracking signals for getting request/response bodies. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.