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 errors.

    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