Skip to content

Instantly share code, notes, and snippets.

@maxkoretskyi
Created December 21, 2017 09:33
Show Gist options
  • Save maxkoretskyi/f6d854052e2aa2f7c788494742cc93be to your computer and use it in GitHub Desktop.
Save maxkoretskyi/f6d854052e2aa2f7c788494742cc93be to your computer and use it in GitHub Desktop.
export abstract class HttpHandler {
abstract handle(req: HttpRequest<any>): Observable<HttpEvent<any>>;
}
export abstract class HttpBackend implements HttpHandler {
abstract handle(req: HttpRequest<any>): Observable<HttpEvent<any>>;
}
export class HttpXhrBackend implements HttpBackend {
handle(req: HttpRequest<any>): Observable<HttpEvent<any>> {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment