Skip to content

Commit

Permalink
docs(http): add description of response header object and typo fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
henri-hulski committed Dec 26, 2016
1 parent 6c3f1ec commit 4663135
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/cerebral-provider-http/README.md
Expand Up @@ -170,6 +170,8 @@ function someGetAction ({http}) {
.then((response) => {
response.status // Status code of response
response.result // Parsed response text
// The response headers are returned as an object with lowercase header
// names as keys. Values belonging to the same key are seperatet by ', '.
response.headers // Parsed response headers
})
// All other status codes
Expand Down Expand Up @@ -221,7 +223,7 @@ Note that this is only related to the **request**. If you want to define what yo
Since Cerebral can only use serializable data in signals and the state tree, any file uploads must happen in components.

```js
import {FileUpload} from 'cerebral-module-http'
import {FileUpload} from 'cerebral-provider-http'

export default connect({
fileNames: 'app.fileNames'
Expand Down

0 comments on commit 4663135

Please sign in to comment.