GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — HTTP/2 Codec decompression support · Issue #2793 · netty/netty

HTTP/2 Codec decompression support #2793

New issue
Copy link
New issue
Copy link
Closed
Closed
HTTP/2 Codec decompression support#2793
Copy link
Assignees
Scottmitch
Labels
feature
Milestone
5.0.0.deprecated

Description

@Scottmitch
Scottmitch
opened on Aug 19, 2014
Issue body actions

The HTTP/2 codec currently does not support decompression. There should be an interface which facilitates decompression in the native HTTP/2 codec and also supported by the HTTP/1.x translation layer.

Activity

  1. Scottmitch
    changed the title [-]HTTP/2 Coded decompression support[/-] [+]HTTP/2 Codec decompression support[/+] on Aug 21, 2014
  2. Scottmitch commented on Aug 26, 2014

    @Scottmitch
    Scottmitch
    on Aug 26, 2014
    MemberAuthor
    More actions

    @nmittler - Thought I would pull you into this discussion. The thought is to somehow provide an interface to set a ByteToMessageDecoder (this seems to be the common base class for decompressors) per stream. When data comes in it will be passed to this ByteToMessageDecoder to inflate the data before calling onDataRead.

  3. nmittler commented on Aug 26, 2014

    @nmittler
    nmittler
    on Aug 26, 2014
    Member
    More actions

    Just to clarify when this will be applied: I'm assuming decompression will happen for DATA frames when a Content-Encoding header is present (e.g. gzip)?

    Ideally, the interception layer that does decompression would also strip the Content-Encoding header before forwarding. Unfortunately, that would almost require that it be in the HTTP/1.1 translation layer (which merges headers/data into full messages before forwarding).

    Either way, the code that will do decompression for HTTP/2 won't exactly be a Decoder (since it's not a channel handler) but maybe it's fine to use a decoder even though it's not really going to be part of any pipeline?

  4. Scottmitch commented on Aug 26, 2014

    @Scottmitch
    Scottmitch
    on Aug 26, 2014
    MemberAuthor
    More actions
    1. Yes to your first assumption.
    2. ** Agreed this would be the easiest conceptual way to handle it (and how the HTTP/1 translation layer will handle it at some level)., but I don't think it is a requirement for HTTP/2. For example as long as we provide optional decompression support then the users of the codec will be aware that even though the 1 of the previous headers frames may have had a Content-Encoding they have asked for the content encoding to be stripped (with some error/boarder cases thrown in there I'm sure). The benefit being avoiding everyone rolling their own decompression logic (when most of the time it could be handled in a common fashion).
      ** OR (possibly a better approach)

      How the HTTP codec does it is they insert a decompressor in the pipeline which deals with HttpMessage and HttpContent objects (which would be header/data frames for HTTP/2). This layer does not merge headers/data into a FullMessage but intercepts/modifies the headers to remove the Content-Encoding header...and then does the decompression on the data. This may make more sense but require an additional layer which doesn't necessarily merge headers/data together, but at least processes them before they move further up the chain. Now we don't have the same access to the pipeline, but we could replicate this type of behavior.
    3. I'm not sure we can do exactly what HttpContentDecompressor is doing with an EmbeddedChannel but seems like the ByteToMessageDecoder type and the callDecode method is somehow what we need to interact with. I think @normanmaurer may be better equipped to weigh in on how to tie these together (I would need to do some experimenting).
  5. Scottmitch
    added
    feature
    on Aug 30, 2014
  6. Scottmitch
    self-assigned this
    on Sep 7, 2014
  7. Scottmitch
    added this to the 5.0.0.Alpha2 milestone on Sep 12, 2014
  8. Scottmitch commented on Sep 14, 2014

    @Scottmitch
    Scottmitch
    on Sep 14, 2014
    MemberAuthor
    More actions

    Closing. Cherry-picked as 96a044f

  9. Scottmitch
    closed this as completedon Sep 14, 2014
  10. normanmaurer
    modified the milestones: 5.0.0.Alpha2, 5.0.0.deprecated on Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @Scottmitch
    Scottmitch

Labels

feature

Type

No type

Projects

No projects

    Milestone

    • 5.0.0.deprecated

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.