Skip to content

Instantly share code, notes, and snippets.

@jbrisbin
Created April 1, 2011 02:34
Show Gist options
  • Save jbrisbin/897645 to your computer and use it in GitHub Desktop.
Save jbrisbin/897645 to your computer and use it in GitHub Desktop.
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!
#!/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