Skip to content

http::server: no compression, and it is the first thing here that needs a dependency #233

Description

@xoloki

Content-Encoding and Accept-Encoding are unimplemented. The server now
serves text files -- HTML, CSS, JavaScript, JSON -- which is exactly the
content compression is for.

Why it is not simply "call deflate"

Two things just built make the wrong assumptions if compression is bolted on:

That interaction is the work. The compressing is a library call.

And it needs zlib

configure.ac does not look for it. It would be an optional module gated by
AM_CONDITIONAL, like libsodium, PortAudio and ImageMagick++ -- so the server
would have to work with and without, and the tests would have to cover both.

Not in this

  • No Brotli or zstd. Accept-Encoding negotiation should be written so adding
    one is a table entry, but only gzip and identity would exist.
  • No compressing a response a handler already produced compressed.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions