Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow async responses from RequestTraversalAgent #115

Merged
merged 3 commits into from Oct 10, 2015

Conversation

habnabit
Copy link
Member

Previously, only completely synchronous responses would pass through successfully. Now, any sync or async response will pass through without issue. This adds a flush method to RequestTraversalAgent and StubTreq to pass data through.

Oh, and I fixed a bug in an unrelated test.

Aaron Gallagher added 3 commits September 23, 2015 14:37
Previously, only completely synchronous responses would pass through
successfully. Now, any sync or async response will pass through without
issue. This adds a `flush` method to RequestTraversalAgent and StubTreq
to pass data through.
@codecov-io
Copy link

Current coverage is 96.31%

Merging #115 into master will increase coverage by +0.13% as of 9f3dbe3

@@            master    #115   diff @@
======================================
  Files           19      19       
  Stmts         1548    1601    +53
  Branches       121     121       
  Methods          0       0       
======================================
+ Hit           1489    1542    +53
  Partial         19      19       
  Missed          40      40       

Review entire Coverage Diff as of 9f3dbe3

Powered by Codecov. Updated on successful CI builds.

@glyph
Copy link
Member

glyph commented Oct 10, 2015

The test docstrings here could really use a refresher on https://jml.io/pages/test-docstrings.html :)

clientProtocol, isServer=False,
hostAddress=clientAddress, peerAddress=serverAddress)

# Twisted 13.2 compatibility.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is only for 13.2, shouldn't we avoid overwriting that method if it's already set?

@glyph
Copy link
Member

glyph commented Oct 10, 2015

I think I'm pretty happy with this, and the issues I've mentioned are not actually new issues, or worth addressing in this PR. Please do some followups if you have the time.

glyph added a commit that referenced this pull request Oct 10, 2015
Allow async responses from RequestTraversalAgent
@glyph glyph merged commit a7cea41 into twisted:master Oct 10, 2015
pawelmhm pushed a commit to pawelmhm/treq that referenced this pull request Nov 4, 2016
added example for "catch-all" routes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants