ng-http-interceptor
Version:
> Http Interceptor library for Angular
11 lines (10 loc) • 431 B
TypeScript
import { Headers } from '@angular/http';
/**
* @description
* Gets {@link Headers} from data array.
* If no {@link RequestOptions} found - creates it and updates original data array.
* If no {@link Headers} found - creates it and sets to {@link RequestOptions}.
* @param data - Array of http data
* @param method - Http method
*/
export declare function getHttpHeadersOrInit(data: any[], method: string): Headers;