Zostanie nagłówek prośby w Loopback4
import {inject} from '@loopback/core';
import {get, Request, RestBindings} from '@loopback/rest';
export class SomethingController {
constructor(@inject(RestBindings.Http.REQUEST) private req: Request) {}
@get('/something')
something(): void {
// Get the headers
this.req.headers;
}
}
Vishnu