Created
April 1, 2011 02:34
-
-
Save jbrisbin/897645 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
HTTP/1.1 200 OK | |
X-Riak-Vclock: a85hYGBgzGDKBVIsrB2/NTOYEhnzWBn4t3Ie58sCAA== | |
X-Riak-Meta-Test: header | |
Vary: Accept-Encoding | |
Server: MochiWeb/1.1 WebMachine/1.7.3 (participate in the frantic) | |
Link: </riak/riak>; rel="up" | |
Last-Modified: Fri, 01 Apr 2011 02:31:43 GMT | |
Etag: "Hy9r79iYjmwVewonL2Lc7" | |
Date: Fri, 01 Apr 2011 02:31:49 GMT | |
Content-Type: text/plain | |
Content-Length: 12 | |
Hello World! |
This file contains hidden or 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
#!/usr/bin/env python | |
import amqplib.client_0_8 as amqp | |
conn = amqp.Connection() | |
ch = conn.channel() | |
msg = amqp.Message( | |
"Hello World!", | |
content_type="text/plain", | |
application_headers={ | |
"test": "header" | |
} | |
) | |
ch.basic_publish(msg, "riak", "test") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment