Browse Source

Update README.md

wkh237 8 years ago
parent
commit
166bfa243e
1 changed files with 4 additions and 12 deletions
  1. 4
    12
      README.md

+ 4
- 12
README.md View File

470
 
470
 
471
 ```
471
 ```
472
 
472
 
473
-## API
474
-
475
 ---
473
 ---
476
 
474
 
475
+## API
476
+
477
 ### `config(options:RNFetchBlobConfig):fetch`
477
 ### `config(options:RNFetchBlobConfig):fetch`
478
 
478
 
479
 `0.5.0`
479
 `0.5.0`
482
 
482
 
483
 see [RNFetchBlobConfig](#user-content-rnfetchblobconfig)
483
 see [RNFetchBlobConfig](#user-content-rnfetchblobconfig)
484
 
484
 
485
----
486
-
487
 ### `fetch(method, url, headers, body):Promise<FetchBlobResponse>`
485
 ### `fetch(method, url, headers, body):Promise<FetchBlobResponse>`
488
 
486
 
489
 `legacy`
487
 `legacy`
500
 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.
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
 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`.
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
 ### `fetch(...).progress(eventListener):Promise<FetchBlobResponse>`
501
 ### `fetch(...).progress(eventListener):Promise<FetchBlobResponse>`
506
 
502
 
507
 `0.4.2`
503
 `0.4.2`
516
 
512
 
517
 TODO
513
 TODO
518
 
514
 
519
----
520
-
521
 ### `base64`
515
 ### `base64`
522
 
516
 
523
 
517
 
530
 RNFetchBlob.base64.decode(data)
524
 RNFetchBlob.base64.decode(data)
531
 ```
525
 ```
532
 
526
 
533
----
534
-
535
 ### `fs`
527
 ### `fs`
536
 
528
 
537
 `0.5.0`
529
 `0.5.0`
736
 
728
 
737
 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.
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
 ### RNFetchBlobConfig
735
 ### RNFetchBlobConfig
744
 
736
 
745
 A set of configurations that will be injected into a `fetch` method, with the following properties.
737
 A set of configurations that will be injected into a `fetch` method, with the following properties.