Bladeren bron

Update README.md

wkh237 8 jaren geleden
bovenliggende
commit
166bfa243e
1 gewijzigde bestanden met toevoegingen van 4 en 12 verwijderingen
  1. 4
    12
      README.md

+ 4
- 12
README.md Bestand weergeven

@@ -470,10 +470,10 @@ You can also grouping requests by using `session` API, and use `dispose` to remo
470 470
 
471 471
 ```
472 472
 
473
-## API
474
-
475 473
 ---
476 474
 
475
+## API
476
+
477 477
 ### `config(options:RNFetchBlobConfig):fetch`
478 478
 
479 479
 `0.5.0`
@@ -482,8 +482,6 @@ Config API was introduced in `v0.5.0` which provides some options for the `fetch
482 482
 
483 483
 see [RNFetchBlobConfig](#user-content-rnfetchblobconfig)
484 484
 
485
----
486
-
487 485
 ### `fetch(method, url, headers, body):Promise<FetchBlobResponse>`
488 486
 
489 487
 `legacy`
@@ -500,8 +498,6 @@ Headers of HTTP request, value of headers should be `stringified`, if you're upl
500 498
 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.
501 499
 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`.
502 500
 
503
----
504
-
505 501
 ### `fetch(...).progress(eventListener):Promise<FetchBlobResponse>`
506 502
 
507 503
 `0.4.2`
@@ -516,8 +512,6 @@ A function that triggers when there's data received/sent, first argument is the
516 512
 
517 513
 TODO
518 514
 
519
----
520
-
521 515
 ### `base64`
522 516
 
523 517
 
@@ -530,8 +524,6 @@ RNFetchBlob.base64.encode(data)
530 524
 RNFetchBlob.base64.decode(data)
531 525
 ```
532 526
 
533
----
534
-
535 527
 ### `fs`
536 528
 
537 529
 `0.5.0`
@@ -736,10 +728,10 @@ RNFetchBlob.fs.stat(PATH_OF_THE_TARGET)
736 728
 
737 729
 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.
738 730
 
739
-## Types
740
-
741 731
 ---
742 732
 
733
+## Types
734
+
743 735
 ### RNFetchBlobConfig
744 736
 
745 737
 A set of configurations that will be injected into a `fetch` method, with the following properties.