angular/packages/common/http/public_api.ts
Alex Rickabaugh 3e39da593a feat(common): introduce experimental httpResource (#59876)
`httpResource` is a new frontend to the `HttpClient` infrastructure. It
declares a dependency on an HTTP endpoint. The request to be made can be
reactive, updating in response to signals for the URL, method, or otherwise.
The response is returned as an instance of `HttpResource`, a
`WritableResource` with some additional signals which represent parts of the
HTTP response metadata (status, headers, etc).

PR Close #59876
2025-02-14 18:40:37 +00:00

68 lines
1.9 KiB
TypeScript

/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
export {HttpBackend, HttpHandler} from './src/backend';
export {HttpClient} from './src/client';
export {HttpContext, HttpContextToken} from './src/context';
export {FetchBackend} from './src/fetch';
export {HttpHeaders} from './src/headers';
export {
HTTP_INTERCEPTORS,
HttpHandlerFn,
HttpInterceptor,
HttpInterceptorFn,
HttpInterceptorHandler as ɵHttpInterceptorHandler,
HttpInterceptorHandler as ɵHttpInterceptingHandler,
} from './src/interceptor';
export {JsonpClientBackend, JsonpInterceptor} from './src/jsonp';
export {HttpClientJsonpModule, HttpClientModule, HttpClientXsrfModule} from './src/module';
export {
HttpParameterCodec,
HttpParams,
HttpParamsOptions,
HttpUrlEncodingCodec,
} from './src/params';
export {
HttpFeature,
HttpFeatureKind,
provideHttpClient,
withFetch,
withInterceptors,
withInterceptorsFromDi,
withJsonpSupport,
withNoXsrfProtection,
withRequestsMadeViaParent,
withXsrfConfiguration,
} from './src/provider';
export {HttpRequest} from './src/request';
export {
HttpDownloadProgressEvent,
HttpErrorResponse,
HttpEvent,
HttpEventType,
HttpHeaderResponse,
HttpProgressEvent,
HttpResponse,
HttpResponseBase,
HttpSentEvent,
HttpStatusCode,
HttpUploadProgressEvent,
HttpUserEvent,
} from './src/response';
export {HttpResourceRef, HttpResourceOptions, HttpResourceRequest} from './src/resource_api';
export {httpResource, HttpResourceFn} from './src/resource';
export {
HttpTransferCacheOptions,
withHttpTransferCache as ɵwithHttpTransferCache,
HTTP_TRANSFER_CACHE_ORIGIN_MAP,
} from './src/transfer_cache';
export {HttpXhrBackend} from './src/xhr';
export {HttpXsrfTokenExtractor} from './src/xsrf';
// Private exports
export * from './src/private_export';