MCPcopy Create free account
hub / github.com/NativeScript/firebase / fromUrlMethod

Method fromUrlMethod

packages/firebase-performance/index.ios.ts:41–48  ·  view source on GitHub ↗
(url: string, method: HttpMethod)

Source from the content-addressed store, hash-verified

39export class HttpMetric implements IHttpMetric {
40 _native: FIRHTTPMetric;
41 static fromUrlMethod(url: string, method: HttpMethod) {
42 if (url && method) {
43 const result = new HttpMetric();
44 result._native = FIRHTTPMetric.alloc().initWithURLHTTPMethod(NSURL.URLWithString(url), toHttpMethod(method));
45 return result;
46 }
47 return null;
48 }
49 get native() {
50 return this._native;
51 }

Callers 1

newHttpMetricMethod · 0.80

Calls 1

toHttpMethodFunction · 0.85

Tested by

no test coverage detected