Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit 166bfa2

Browse files
committed
Update README.md
1 parent 1b13126 commit 166bfa2

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

README.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -470,10 +470,10 @@ You can also grouping requests by using `session` API, and use `dispose` to remo
470470

471471
```
472472

473-
## API
474-
475473
---
476474

475+
## API
476+
477477
### `config(options:RNFetchBlobConfig):fetch`
478478

479479
`0.5.0`
@@ -482,8 +482,6 @@ Config API was introduced in `v0.5.0` which provides some options for the `fetch
482482

483483
see [RNFetchBlobConfig](#user-content-rnfetchblobconfig)
484484

485-
---
486-
487485
### `fetch(method, url, headers, body):Promise<FetchBlobResponse>`
488486

489487
`legacy`
@@ -500,8 +498,6 @@ Headers of HTTP request, value of headers should be `stringified`, if you're upl
500498
Body of the HTTP request, body can either be a BASE64 string, or an array contains object elements, each element have 2 required property `name`, and `data`, and 1 optional property `filename`, once `filename` is set, content in `data` property will be consider as BASE64 string that will be converted into byte array later.
501499
When body is a base64 string , this string will be converted into byte array in native code, and the request body will be sent as `application/octet-stream`.
502500

503-
---
504-
505501
### `fetch(...).progress(eventListener):Promise<FetchBlobResponse>`
506502

507503
`0.4.2`
@@ -516,8 +512,6 @@ A function that triggers when there's data received/sent, first argument is the
516512

517513
TODO
518514

519-
---
520-
521515
### `base64`
522516

523517

@@ -530,8 +524,6 @@ RNFetchBlob.base64.encode(data)
530524
RNFetchBlob.base64.decode(data)
531525
```
532526

533-
---
534-
535527
### `fs`
536528

537529
`0.5.0`
@@ -736,10 +728,10 @@ RNFetchBlob.fs.stat(PATH_OF_THE_TARGET)
736728

737729
Connect `Media Scanner` and scan the file. see [Android Media Scanner, and Downloads App Support](#user-content-android-media-scanner-and-downloads-app-support) chapter for more information.
738730

739-
## Types
740-
741731
---
742732

733+
## Types
734+
743735
### RNFetchBlobConfig
744736

745737
A set of configurations that will be injected into a `fetch` method, with the following properties.

0 commit comments

Comments
 (0)