Skip to content

0️⃣ Remove Empty class, use hip.Binary(b'') instead. #83

Open

Description

@lovelydinosaur

We currently have an Empty class, which is a Content implementation for no data.

This happens to exist because it's attempting to differentiate between requests/responses with Content-Length: 0 vs requests/responses with no Content-Length header. This just seems oddly confusing.

  • Drop this class, and just use Binary(b'') for the empty case.
  • Ensure that Binary(b'').headers() does not include a Content-Length header.

Activity

  1. changed the title [-]Remove `Empty` class[/-] [+]Remove `Empty` class, use `hip.Binary(b'')` instead.[/+] on Oct 21, 2026
  2. changed the title [-]Remove `Empty` class, use `hip.Binary(b'')` instead.[/-] [+]0️⃣ Remove `Empty` class, use `hip.Binary(b'')` instead.[/+] on Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    sprint candidateCould make for a good code sprint task

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions