Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Merge cc2e5f3 into dc300f3
Browse files Browse the repository at this point in the history
  • Loading branch information
Grayson Koonce committed Aug 6, 2015
2 parents dc300f3 + cc2e5f3 commit 7bdbae1
Show file tree
Hide file tree
Showing 81 changed files with 2,287 additions and 969 deletions.
11 changes: 9 additions & 2 deletions CHANGES.rst
Expand Up @@ -2,10 +2,17 @@ Changelog
=========


0.14.1 (unreleased)
0.15.0 (unreleased)
-------------------

- Nothing changed yet.
- Introduced ``TChannel.call`` to replace the awkward ``request`` / ``send``
calling pattern.
- Refactored arg schemes to no longer require an explicit use of
``ArgSchemeBroker``. Use ``tchannel.json.call`` or ``tchanne.thrift.call`` to
send requests for a particular scheme.
- Fixed a bug where JSON arg2 (headers) was being returned a string instead of
a dictionary.
- Re-organized the examples directory.


0.14.0 (2015-08-03)
Expand Down
7 changes: 7 additions & 0 deletions UPGRADE.rst
Expand Up @@ -4,6 +4,13 @@ Version Upgrade Guide
Migrating to a version of TChannel with breaking changes? This guide documents
what broke and how to safely migrate to newer versions.

From 0.12 to 0.14
-----------------

- ``ArgSchemeBroker`` has been deprecated.
- ```` has been deprecated.


From 0.11 to 0.12
-----------------

Expand Down
File renamed without changes.
57 changes: 0 additions & 57 deletions examples/handlers.py

This file was deleted.

59 changes: 0 additions & 59 deletions examples/json_client.py

This file was deleted.

51 changes: 0 additions & 51 deletions examples/json_server.py

This file was deleted.

39 changes: 0 additions & 39 deletions examples/options.py

This file was deleted.

51 changes: 0 additions & 51 deletions examples/raw_client.py

This file was deleted.

49 changes: 0 additions & 49 deletions examples/raw_server.py

This file was deleted.

39 changes: 39 additions & 0 deletions examples/simple/json/client.py
@@ -0,0 +1,39 @@
import json

from tornado import gen, ioloop

from tchannel import TChannel


tchannel = TChannel('json-client')


@gen.coroutine
def make_request():

resp = yield tchannel.json(
service='json-server',
endpoint='endpoint',
body={
'req': 'body'
},
headers={
'req': 'header'
},
hostport='localhost:54496',
)

raise gen.Return(resp)


resp = ioloop.IOLoop.current().run_sync(make_request)

assert resp.headers == {
'resp': 'header',
}
assert resp.body == {
'resp': 'body',
}

print json.dumps(resp.body)
print json.dumps(resp.headers)

0 comments on commit 7bdbae1

Please sign in to comment.