(url: string, method: HttpMethod)
| 39 | export 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 | } |
no test coverage detected