I want to use the base path in a Drupal 8 template file. I tried the following, but I don't get the correct result.

```
{{ app.request.baseUrl  }}

{{base_path}}

```

What I need is the absolute path to the node `{{ app.request.baseUrl }}/{{ url }}`.

One solution I found is putting this code in a preprocess hook, and pass it to the theme. 

```
 $host = \Drupal::request()->getHost(); 
$response = \Drupal::httpClient()

```

I am looking for a better solution. What could should I use instead of the one I am using?