# http_client: Relax lifetime bounds and add fluent builder methods \(\#38448\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/f18b19a73e61cfbbf05c6b427dd8f5b1e82fa868)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: f18b19a73e61cfbbf05c6b427dd8f5b1e82fa868

Requested commit: f18b19a73e61cfbbf05c6b427dd8f5b1e82fa868

Commit: f18b19a73e61cfbbf05c6b427dd8f5b1e82fa868

Tree: 9b3bb0e5f3352e3720794b3a16a7d367951c52bf

Author: tidely

Committer: GitHub

## Message

```
http_client: Relax lifetime bounds and add fluent builder methods (#38448)

`HttpClient`: Relaxes the lifetime bound to `&self` in `get`/`post`
by returning the `self.send` future directly. This makes both
methods return `'static` futures without extra boxing.

`HttpRequestExt`: Added fluent builder methods to `HttpRequestExt`
inspired by the `gpui::FluentBuilder` trait.

Release Notes:

- N/A
```

## Parents

- [b09764c54a92bfb567aa0ca6d00203cc641e5a3d](https://git.cafe/gitcafe/zed/commit/b09764c54a92bfb567aa0ca6d00203cc641e5a3d?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/f18b19a73e61cfbbf05c6b427dd8f5b1e82fa868?format=markdown)
