AngularTS
    Preparing search index...

    Function http

    • Sends a low-level XMLHttpRequest using AngularTS-compatible callback and timeout semantics.

      Parameters

      • method: string

        The HTTP method (for example, "GET" or "POST").

      • Optionalurl: string

        The request URL. Defaults to the current page URL.

      • Optionalpost: any

        Optional request body.

      • Optionalcallback: (
            status: number,
            response: any,
            headersString: string | null,
            statusText: string,
            xhrStatus: HttpResponseStatus,
        ) => void

        Completion callback invoked when the request settles.

      • Optionalheaders: Record<string, string | undefined>

        Request headers to apply before sending.

      • Optionaltimeout: number | Promise<any>

        Timeout in milliseconds or a cancellable promise.

      • OptionalwithCredentials: boolean

        Whether to send credentials with the request.

      • OptionalresponseType: XMLHttpRequestResponseType

        The expected XHR response type.

      • OptionaleventHandlers: Record<string, EventListenerOrEventListenerObject>

        Event listeners attached to the XMLHttpRequest instance.

      • OptionaluploadEventHandlers: Record<string, EventListenerOrEventListenerObject>

        Event listeners attached to XMLHttpRequest.upload.

      Returns void