Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tlrobinson committed Oct 30, 2012
1 parent d397b52 commit e03aa28
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.md
Expand Up @@ -13,17 +13,17 @@ Mach is a better way to build web servers in Node.js and other JavaScript platfo

Here's what an asynchronous request might look like:

function (request) {
// start processing request
return Q.when(someAsyncOperation(request), function(data) {
// finish processing request
return {
status: 200,
headers: { "Content-Type": "text/plain" },
body: /* TBD */
};
});
}
function (request) {
// start processing request
return Q.when(someAsyncOperation(request), function(data) {
// finish processing request
return {
status: 200,
headers: { "Content-Type": "text/plain" },
body: /* TBD */
};
});
}

The `request` and `response` objects are defined [in the spec](https://github.com/machjs/mach/blob/master/SPEC.md)

Expand Down

0 comments on commit e03aa28

Please sign in to comment.