Browse files

Document public serving.

  • Loading branch information...
1 parent 4db81af commit 1e94ef6b800a41cec9423d5124d2ff69c0a61aac @jedisct1 committed Jun 6, 2010
Showing with 22 additions and 0 deletions.
  1. +22 −0 README.markdown
View
22 README.markdown
@@ -145,6 +145,28 @@ explicitly set this argument.
full objects.
* `properties=(0 or 1)` in order to include properties or not in the reply.
+* **Serving documents:**
+
+ Pincaster can also act like a web server and directly serve documents stored
+in keys.
+
+ In order to be accesible this way, a key:
+
+ * must have a `$content` property whose value holds the content that has to
+be served
+ * may have a `$content_type` property with the Content-Type.
+
+ The default Content-Type currently is `text/plain`.
+
+ Public data from layer (layer name) and key (key) is reachable at:
+
+ Method: `GET`
+
+ URI: `http://$HOST:4269/public/(layer name)/(key)
+
+ Having a HTTP proxy between Pincaster and untrusted users is highly
+recommended in order to serve public data.
+
Misc
----

0 comments on commit 1e94ef6

Please sign in to comment.