<commit_before>Request (req)
-------------
Sails is built on Express. Because of this, you can access all of the express methods and properties on the req() object over http.  Sails has also added a few methods on top of socket.io that allows you to access some of them over websockets.

# req.files
### Purpose
This is an object containing information about files uploaded through the Express bodyParser.  

### Example Usage
If a file field was named "image", and a file was uploaded, req.files.image would contain the following File object:
```javascript
{ size: 74643,
  path: '/tmp/8ef9c52abe857867fd0a4e9a819d1876',
  name: 'edge.png',
  type: 'image/png',
  hash: false,
  lastModifiedDate: Thu Aug 09 2012 20:07:51 GMT-0700 (PDT),
  _writeStream: 
   { path: '/tmp/8ef9c52abe857867fd0a4e9a819d1876',
     fd: 13,
     writable: false,
     flags: 'w',
     encoding: 'binary',
     mode: 438,
     bytesWritten: 74643,
     busy: false,
     _queue: [],
     _open: [Function],
     drainable: true },
  length: [Getter],
  filename: [Getter],
  mime: [Getter] }
```

### Notes

# req.param(string)
### Purpose
This method searches the http request body , header, and query string for a parameter with name equal to the supplied parameter.  

### Example Usage
```javascript

var myParam = req.param('blueStuff');

// myParam would contain the value of 'blueStuff' 

```

### Notes
> This is nice.  Sails makes it nicer by making ALL params available through req.params.all().  See this method below.

# req.route
### Purpose
This is an object containing information about the <a href=http://omfgdogs.com>route</a> by which request traveled.
### Example Usage
```javascript

console.log(req.route);

/*

{ path: '/user/:id?',
  method: 'get',
  callbacks: [ [Function] ],
  keys: [ { name: 'id', optional: true } ],
  regexp: /^\/user(?:\/([^\/]+?))?\/?$/i,
  params: [ id: '12' ] }
*/

```

### Notes
<commit_msg>Update Req.md<commit_after>Request (req)
-------------
Sails is built on Express. Because of this, you can access all of the express methods and properties on the req() object over http.  Sails has also added a few methods on top of socket.io that allows you to access some of them over websockets.

# req.files
### Purpose
This is an object containing information about files uploaded through the Express bodyParser.  

### Example Usage
If a file field was named "image", and a file was uploaded, req.files.image would contain the following File object:
```javascript
{ size: 74643,
  path: '/tmp/8ef9c52abe857867fd0a4e9a819d1876',
  name: 'edge.png',
  type: 'image/png',
  hash: false,
  lastModifiedDate: Thu Aug 09 2012 20:07:51 GMT-0700 (PDT),
  _writeStream: 
   { path: '/tmp/8ef9c52abe857867fd0a4e9a819d1876',
     fd: 13,
     writable: false,
     flags: 'w',
     encoding: 'binary',
     mode: 438,
     bytesWritten: 74643,
     busy: false,
     _queue: [],
     _open: [Function],
     drainable: true },
  length: [Getter],
  filename: [Getter],
  mime: [Getter] }
```

### Notes

# req.param(string)
### Purpose
This method searches the http request body , header, and query string for a parameter with name equal to the supplied parameter.  

### Example Usage
```javascript

var myParam = req.param('blueStuff');

// myParam would contain the value of 'blueStuff' 

```

### Notes
> This is nice.  Sails makes it nicer by making ALL params available through req.params.all().  See this method somewhere below.

# req.route
### Purpose
This is an object containing information about the <a href=http://omfgdogs.com>route</a> by which request traveled.
### Example Usage
```javascript

console.log(req.route);

/*

{ path: '/user/:id?',
  method: 'get',
  callbacks: [ [Function] ],
  keys: [ { name: 'id', optional: true } ],
  regexp: /^\/user(?:\/([^\/]+?))?\/?$/i,
  params: [ id: '12' ] }
*/

```

### Notes

{'fraction_non_alphanumeric': 0.13985469641930462, 'fraction_numerical': 0.03788271925272444, 'mean_word_length': 3.5140515222482436, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1825790', 'n_tokens_mistral': 1350, 'n_tokens_neox': 1235, 'n_words': 448}