# std.http: remove the ability to heap-allocate headers · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/90bd4f226e2ba03634d31c73df06bf0a90fa0231)

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

Visibility: public

Requested revision: 90bd4f226e2ba03634d31c73df06bf0a90fa0231

Requested commit: 90bd4f226e2ba03634d31c73df06bf0a90fa0231

Commit: 90bd4f226e2ba03634d31c73df06bf0a90fa0231

Tree: 0a5cc52fa31ac0e0d9f8f40bce9534c67c4bd89c

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.http: remove the ability to heap-allocate headers

The buffer for HTTP headers is now always provided via a static buffer.
As a consequence, OutOfMemory is no longer a member of the read() error
set, and the API and implementation of Client and Server are simplified.

error.HttpHeadersExceededSizeLimit is renamed to
error.HttpHeadersOversize.

```

## Parents

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

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