Skip to content

Commit

Permalink
Adding documentation for Buffer data
Browse files Browse the repository at this point in the history
  • Loading branch information
rubennorte committed Apr 8, 2017
1 parent 1883344 commit 19644ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ These are the available config options for making requests. Only the `url` is re

// `transformRequest` allows changes to the request data before it is sent to the server
// This is only applicable for request methods 'PUT', 'POST', and 'PATCH'
// The last function in the array must return a string, an ArrayBuffer, FormData, or a Stream
// The last function in the array must return a string or an instance of Buffer, ArrayBuffer,
// FormData or Stream
transformRequest: [function (data) {
// Do whatever you want to transform the data

Expand Down Expand Up @@ -248,7 +249,7 @@ These are the available config options for making requests. Only the `url` is re
// When no `transformRequest` is set, must be of one of the following types:
// - string, plain object, ArrayBuffer, ArrayBufferView, URLSearchParams
// - Browser only: FormData, File, Blob
// - Node only: Stream
// - Node only: Stream, Buffer
data: {
firstName: 'Fred'
},
Expand Down

0 comments on commit 19644ba

Please sign in to comment.