# http.BodyWriter: improve clarity of chunked state machine · gitcafe/zig

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

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

Visibility: public

Requested revision: c315f2bc2eacc33e2a6e0fcb5b775e20aa506aa7

Requested commit: c315f2bc2eacc33e2a6e0fcb5b775e20aa506aa7

Commit: c315f2bc2eacc33e2a6e0fcb5b775e20aa506aa7

Tree: 3d61bec5d96b8dc46207bd130cac93addc8614cd

Author: Isaac Freund

Committer: Isaac Freund

## Message

```
http.BodyWriter: improve clarity of chunked state machine

This is theoretically a bugfix as well, since it enforces the correct
limit on the first write after writing the header. This theoretical bug
hasn't been hit in practice though as far as I know.

```

## Parents

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

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