AngularTS
    Preparing search index...

    Interface HttpService

    Runtime surface of the $http service.

    Call the service directly with a full HttpRequestConfig, or use a shorthand method for common HTTP verbs. All methods return an Promise<HttpResponse<T>> that resolves for successful 2xx responses and rejects with HttpError for HTTP or transport failures. Configuration, transform, and interceptor errors can reject with other error types.

    Uses Fetch exclusively. Cancel with a native AbortSignal, set a numeric timeout for a deadline, and observe completion through the returned promise. Upload progress events are not available.

    interface HttpService {
        defaults: HttpDefaults;
        pendingRequests: HttpRequestConfig[];
        delete<T>(
            url: string,
            config?: HttpRequestOptions,
        ): Promise<HttpResponse<T>>;
        get<T>(url: string, config?: HttpRequestOptions): Promise<HttpResponse<T>>;
        head<T>(url: string, config?: HttpRequestOptions): Promise<HttpResponse<T>>;
        patch<T>(
            url: string,
            data: unknown,
            config?: HttpRequestOptions,
        ): Promise<HttpResponse<T>>;
        post<T>(
            url: string,
            data: unknown,
            config?: HttpRequestOptions,
        ): Promise<HttpResponse<T>>;
        put<T>(
            url: string,
            data: unknown,
            config?: HttpRequestOptions,
        ): Promise<HttpResponse<T>>;
        <T>(config: HttpRequestConfig): Promise<HttpResponse<T>>;
    }
    Index

    Properties

    defaults: HttpDefaults

    Live runtime defaults initialized from app-level $http configuration.

    pendingRequests: HttpRequestConfig[]

    Requests currently in flight.

    Methods

    post