UNPKG

@anglr/rest

Version:

Angular module representing rest services

34 lines 1.42 kB
import { isPresent } from '@jscrpt/common'; /** * Options for AvroAdapterInterceptor */ export class AvroAdapterInterceptorOptions { //######################### constructor ######################### /** * Creates instance of HttpErrorInterceptorOptions * @param disabled - Indication whether this interceptor is disabled * @param fingerprintHeaderName - Name of header used for passing fingerprint of schema * @param typeHeaderName - Name of header used for passing name of type * @param customAcceptContentTypeHeader - Value passed to custom Accept header and Content-Type header */ constructor(disabled, fingerprintHeaderName, typeHeaderName, customAcceptContentTypeHeader) { //######################### public properties ######################### /** * Indication whether this interceptor is disabled */ this.disabled = false; if (isPresent(disabled)) { this.disabled = disabled; } if (isPresent(fingerprintHeaderName)) { this.fingerprintHeaderName = fingerprintHeaderName; } if (isPresent(typeHeaderName)) { this.typeHeaderName = typeHeaderName; } if (isPresent(customAcceptContentTypeHeader)) { this.customAcceptContentTypeHeader = customAcceptContentTypeHeader; } } } //# sourceMappingURL=avroAdapter.options.js.map