🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@s3pweb/capacitor-http

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@s3pweb/capacitor-http

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

latest
Source
npmnpm
Version
0.2.6
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

@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(...)
  • uploadFile(...)
  • Interfaces

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

Keywords

capacitor

FAQs

Package last updated on 17 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts