Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
doc: fix typos
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
skenqbx committed Oct 2, 2015
1 parent 3513c4c commit 6bab48f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.markdown
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# [rail](./README.markdown) ChangeLog

## 2015-10-01, [v0.8.0](https://github.com/skenqbx/rail/tree/v0.8.0) **_<small>unstable</small>_**
## 2015-10-02, [v0.8.0](https://github.com/skenqbx/rail/tree/v0.8.0) **_<small>unstable</small>_**

### Commits

Expand Down
6 changes: 3 additions & 3 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ var client = new RAIL({
},
// load & configure the buffer plugin
buffer: {
default: true // buffer all repsonses by default
default: true // buffer all responses by default
},
// load & configure the json plugin
json: {
auto: true // try to parse all reponses with content-type equal to application/json
auto: true // try to parse all responses with content-type equal to application/json
},
// load & configure the redirect plugin
redirect: {
Expand All @@ -136,7 +136,7 @@ var call = client.call({
} else if (response.buffer) {
console.log(response.buffer.toString());

// ... or if a bailout happend (buffer max size exceeded)
// ... or if a bailout happened (buffer max size exceeded)
} else if (response.buffer !== null) {
// consume the response
response.on('readable', function() { /* ... */ });
Expand Down
2 changes: 1 addition & 1 deletion doc/api.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ _Copy_ all buffered chunks to `writable`.
Empties the buffer and sets `replayBuffer.buffer` to `false`.

### replayBuffer.end()
Prevents further additon of chunks and clear the writable stream.
Prevents further addition of chunks and clear the writable stream.

### Event: 'end'
Emitted when the buffer is ended. This is the last moment a can modify the request configuration.
Expand Down
4 changes: 2 additions & 2 deletions doc/plugins.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Uses the `buffer` plugin.
- `{boolean} auto` Enable auto-parsing when `Content-Type: application/json`
- `{number} max` The maximum JSON size, defaults to `1048576` (1 MiB)

_Note_: When the JSON size exeeds the maximum size, it's not parsed. The `response.buffer` is still available for manual parsing, though.
_Note_: When the JSON size exceeds the maximum size, it's not parsed. The `response.buffer` is still available for manual parsing, though.

**request options**

Expand Down Expand Up @@ -96,7 +96,7 @@ Emitted when `request.end()` of a redirected request has been called.
## retry
Conditional request retry.

Retry requests on connect errors, on specfifc http status codes and failed repsonse [validation](#validate).
Retry requests on connect errors, on specific http status codes and failed response [validation](#validate).

**options**

Expand Down

0 comments on commit 6bab48f

Please sign in to comment.