79092984

Date: 2024-10-16 07:57:29
Score: 1.5
Natty:
Report link

While it it is not recommended (the very first sentence from the GET method's documentation), technically you could do it:

  constructor(private http: HttpClient) {}

  doAGetWithBodyRequest(): void {
    this.http.request(
    // the type of request:
    'get',
    // the path:
    'https://localhost:8080',
    // the body:
    { body: 'your-body-in-here' }
  }
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Bullsized