0.2.6 • Published 10 months ago

@s3pweb/capacitor-http v0.2.6

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@s3pweb/capacitor-http

A native HTTP plugin for CORS-free requests and file transfers

Install

npm install @s3pweb/capacitor-http
npx cap sync

API

echo(...)

echo(options: { value: string; }) => Promise<{ value: string; }>
ParamType
options{ value: string; }

Returns: Promise<{ value: string; }>


uploadFile(...)

uploadFile(options: HttpUploadFileOptions) => Promise<HttpUploadFileResult>
ParamType
optionsHttpUploadFileOptions

Returns: Promise<HttpUploadFileResult>


Interfaces

HttpUploadFileResult

HttpUploadFileOptions

PropTypeDescription
urlstringThe URL to upload the file to
namestringThe field name to upload the file with
blobanyFor uploading a file on the web, a JavaScript Blob to upload
AuthorizationstringFor uploading a file natively, the Authorization header to use
0.2.6

10 months ago

0.2.5

2 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago