MCPcopy
hub / github.com/ionic-team/capacitor / CapacitorHttpPlugin

Interface CapacitorHttpPlugin

core/src/core-plugins.ts:159–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157
158/******** HTTP PLUGIN ********/
159export interface CapacitorHttpPlugin {
160 /**
161 * Make a Http Request to a server using native libraries.
162 */
163 request(options: HttpOptions): Promise<HttpResponse>;
164 /**
165 * Make a Http GET Request to a server using native libraries.
166 */
167 get(options: HttpOptions): Promise<HttpResponse>;
168 /**
169 * Make a Http POST Request to a server using native libraries.
170 */
171 post(options: HttpOptions): Promise<HttpResponse>;
172 /**
173 * Make a Http PUT Request to a server using native libraries.
174 */
175 put(options: HttpOptions): Promise<HttpResponse>;
176 /**
177 * Make a Http PATCH Request to a server using native libraries.
178 */
179 patch(options: HttpOptions): Promise<HttpResponse>;
180 /**
181 * Make a Http DELETE Request to a server using native libraries.
182 */
183 delete(options: HttpOptions): Promise<HttpResponse>;
184}
185
186/**
187 * How to parse the Http response before returning it to the client.

Callers 31

initLoggerFunction · 0.65
returnResultFunction · 0.65
requestMethod · 0.65
isPluginAvailableFunction · 0.65
registerPluginFunction · 0.65
initLoggerFunction · 0.65
returnResultFunction · 0.65
addURIMethod · 0.65
callPluginMethodMethod · 0.65
evalMethod · 0.65
executeMethod · 0.65

Implementers 2

CapacitorHttpPluginWebcore/src/core-plugins.ts
CapacitorHttpandroid/capacitor/src/main/java/com/ge

Calls

no outgoing calls

Tested by

no test coverage detected