title: Angular HttpClient request method how to set body
body: <p>I need to send a get request with body. Im using angular HttpClient. I understand that get method does not allow to send body, so i'm triyng the request method instead but i cant understand how to use it.</p>
  
  <p>I was able to get data from the exemple bellow without the body part, but i really need to send the body as JSON format.</p>
  
  <pre><code>    request(req?: any): any{
  
      const options = createRequestOption(req);
      return this.http
          .request&lt;ISubscriber[]&gt;("GET", this.resourceUrl,
          {
              body: '[{"key": "phoneLineType", "operation": "&gt;", "value": "200"}]',
              headers: new HttpHeaders({'Content-Type' : 'application/json'}),
              params: options,
              observe: 'response'
          });
  }
  </code></pre>