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

Commit 4a5cfa4

Browse files
committed
Update README.md
Correct API introduction.
1 parent 5ad75fb commit 4a5cfa4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,12 @@ RNFetchBlob.fetch('POST', 'https://content.dropboxapi.com/2/files/upload', {
7777

7878
## API
7979

80-
#### `Promise<FetchBlobResponse> fetch(url, headers, body)`
80+
#### `Promise<FetchBlobResponse> fetch(method, url, headers, body)`
8181

8282
Send a HTTP request uses given headers and body, and return a Promise.
8383

84+
#### method:`string` Required
85+
HTTP request method, can be one of `get`, `post`, `delete`, and `put`, case-insensitive.
8486
#### url:`string` Required
8587
HTTP request destination url.
8688
#### headers:`object` (Optional)

0 commit comments

Comments
 (0)