Skip to content

Commit e93ed8d

Browse files
committed
- Fixed: rendering of subheaders
1 parent 21323f3 commit e93ed8d

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

Readme.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ form.submit({
186186

187187
### Methods
188188

189-
#####_void_ append( **String** _field_, **Mixed** _value_ [, **Mixed** _options_] )
189+
##### _void_ append( **String** _field_, **Mixed** _value_ [, **Mixed** _options_] )
190190
Append data to the form. You can submit about any format (string, integer, boolean, buffer, etc.). However, Arrays are not supported and need to be turned into strings by the user.
191191
```javascript
192192
var form = new FormData();
@@ -206,18 +206,18 @@ form.append( 'my_file', fs.createReadStream('/foo/bar.jpg'), 'bar.jpg' );
206206
form.append( 'my_file', fs.createReadStream('/foo/bar.jpg'), {filename: 'bar.jpg', filesize: 1045} );
207207
```
208208

209-
#####_Array_ getHeaders( [**Array** _userHeaders_] )
209+
##### _Array_ getHeaders( [**Array** _userHeaders_] )
210210
This method ads the correct `content-type` header to the provided array of `userHeaders`.
211211

212-
#####_String_ getBoundary()
212+
##### _String_ getBoundary()
213213
Return the boundary of the formData. A boundary consists of 26x `-` followed by 24 numbers
214214
for example:
215215
```javascript
216216
--------------------------515890814546601021194782
217217
```
218218
_Note: The boundary must be unique and may not appear in the data._
219219

220-
#####_Buffer_ getBuffer()
220+
##### _Buffer_ getBuffer()
221221
Return the full formdata request package, as a Buffer. You can insert this Buffer in e.g. Axios to send multipart data.
222222

223223
```javascript
@@ -231,12 +231,12 @@ axios.post( 'https://example.com/path/to/api',
231231
)
232232
```
233233

234-
#####_Integer_ getLengthSync()
234+
##### _Integer_ getLengthSync()
235235
Same as `getLength` but synchronous.
236236

237237
_Note: getLengthSync __doesn't__ calculate streams length._
238238

239-
#####_Integer_ getLength( function _callback_ )
239+
##### _Integer_ getLength( function _callback_ )
240240
Returns the `Content-Length` async. The callback is used to handle errors and continue once the length has been calculated
241241
```javascript
242242
this.getLength(function(err, length) {
@@ -252,10 +252,10 @@ this.getLength(function(err, length) {
252252
}.bind(this));
253253
```
254254

255-
#####_boolean_ hasKnownLength()
255+
##### _boolean_ hasKnownLength()
256256
Checks if the length of added values is known.
257257

258-
#####_request_ submit( _params_, function _callback_ )
258+
##### _request_ submit( _params_, function _callback_ )
259259
Submit the form to a web application.
260260
```javascript
261261
var form = new FormData();
@@ -267,7 +267,7 @@ form.submit( 'http://example.com/', function(err, res) {
267267
} );
268268
```
269269

270-
#####_String_ toString()
270+
##### _String_ toString()
271271
Returns the form data as a string. Don't use this if you are sending files or buffers, use `getBuffer()` instead.
272272

273273
### Integration with other libraries

0 commit comments

Comments
 (0)