Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • AndroidHttpLib

Implements

  • HttpRequestLibrary

Index

Constructors

constructor

  • new AndroidHttpLib(sendMessage: (m: string) => void): AndroidHttpLib
  • Parameters

    • sendMessage: (m: string) => void
        • (m: string): void
        • Parameters

          • m: string

          Returns void

    Returns AndroidHttpLib

Properties

Private nodeHttpLib

nodeHttpLib: HttpRequestLibrary = ...

Private requestId

requestId: number = 1

Private requestMap

requestMap: {} = {}

Type declaration

  • [id: number]: OpenedPromise<HttpResponse>

useNfcTunnel

useNfcTunnel: boolean = false

Methods

fetch

  • fetch(url: string, opt?: HttpRequestOptions): Promise<HttpResponse>
  • Parameters

    • url: string
    • Optional opt: HttpRequestOptions

    Returns Promise<HttpResponse>

get

  • get(url: string, opt?: HttpRequestOptions): Promise<HttpResponse>
  • Parameters

    • url: string
    • Optional opt: HttpRequestOptions

    Returns Promise<HttpResponse>

handleTunnelResponse

  • handleTunnelResponse(msg: any): void
  • Parameters

    • msg: any

    Returns void

postJson

  • postJson(url: string, body: any, opt?: HttpRequestOptions): Promise<HttpResponse>
  • Parameters

    • url: string
    • body: any
    • Optional opt: HttpRequestOptions

    Returns Promise<HttpResponse>

Generated using TypeDoc