diff --git a/website/api.html b/website/api.html index bd89007a2e7..f22c3aeccb2 100644 --- a/website/api.html +++ b/website/api.html @@ -664,7 +664,24 @@

node.http.ServerRequest

req.uri
-
Request URI. (Object.)
+
Request URI Object. This contains only the parameters that are + present in the actual http request. That is, if the request is +
GET /status?name=ryan HTTP/1.1\r\n
+Accept: */*\r\n
+\r\n
+
+ Then req.uri will be +
+{ path: "/status", 
+  file: "status", 
+  directory: "/", 
+  params: { "name" : "ryan" } 
+}
+ In particular, note that req.uri.protocol is + undefined. This is because there was no URI protocol given + in the actual HTTP Request. +
+
req.uri.anchor
req.uri.query
req.uri.file
@@ -678,11 +695,7 @@

node.http.ServerRequest

req.uri.authority
req.uri.protocol
req.uri.params
-
- req.uri.toString(), - req.uri.source -
-
The original URI found in the status line.
+
req.uri.toString(), req.uri.source
req.headers