mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Prior to this commit relative HTTP requests were not being resolved to absolute even thought the behaviour is documented in https://angular.io/guide/universal#using-absolute-urls-for-http-data-requests-on-the-server. This caused relative HTTP requests to fail when done on the server because of missing request context. This change is also required to eventually support HTTP requests handled during prerendering (SSG). Closes #51626 PR Close #52326
26 lines
1.7 KiB
TypeScript
26 lines
1.7 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.io/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 {HttpTransferCacheOptions, withHttpTransferCache as ɵwithHttpTransferCache} from './src/transfer_cache';
|
|
export {HttpXhrBackend} from './src/xhr';
|
|
export {HttpXsrfTokenExtractor} from './src/xsrf';
|
|
|
|
// Private exports
|
|
export * from './src/private_export';
|