Skip to content
Browse files

Resolves DEVO-77, add note about PUT and DELETE not being accessible …

…through the Unite DOM API
  • Loading branch information...
1 parent 120ad9e commit a3cbe6095cef16c7cd3a20593ca53688cf02ab9f Mike Taylor committed Nov 7, 2011
Showing with 7 additions and 1 deletion.
  1. +7 −1 unite-api/unite.js
View
8 unite-api/unite.js
@@ -431,7 +431,13 @@ var WebServerRequest = function () {
this.connection = {};
/**
- * The HTTP method of this request, one of GET, POST, PUT or DELETE. Readonly.
+ * The HTTP method of this request, one of GET, POST, PUT or DELETE. Readonly.
+ *
+ * <pre><code>var httpMethod = event.connection.request.method;
+ * if ( httpMethod == "POST" ) { // do something with POST }</code></pre>
+ *
+ * <p>NOTE: The PUT and DELETE methods are not accessible through the DOM API.</p>
+ *
* @type String
*/
this.method = '';

0 comments on commit a3cbe60

Please sign in to comment.
Something went wrong with that request. Please try again.