Skip to content
  1. Jan 04, 2016
  2. Dec 27, 2015
  3. Dec 26, 2015
  4. Dec 24, 2015
  5. Dec 23, 2015
  6. Dec 20, 2015
  7. Dec 17, 2015
  8. Dec 16, 2015
  9. Dec 15, 2015
    • Tatsuhiro Tsujikawa's avatar
      http2: Support trailer fields · 15cb03ad
      Tatsuhiro Tsujikawa authored
      This commit adds trailer support in HTTP/2.  In HTTP/1.1, chunked
      encoding must be used to send trialer fields.  HTTP/2 deprecated any
      trandfer-encoding, including chunked.  But trailer fields are now
      always available.
      
      Since trailer fields are relatively rare these days (gRPC uses them
      extensively though), allocating buffer for trailer fields is done when
      we detect that HEADERS frame containing trailer fields is started.  We
      use Curl_add_buffer_* functions to buffer all trailers, just like we
      do for regular header fields.  And then deliver them when stream is
      closed.  We have to be careful here so that all data are delivered to
      upper layer before sending trailers to the application.
      
      We can deliver trailer field one by one using NGHTTP2_ERR_PAUSE
      mechanism, but current method is far more simple.
      
      Another possibility is use chunked encoding internally for HTTP/2
      traffic.  I have not tested it, but it could add another overhead.
      
      Closes #564
      15cb03ad
    • Daniel Stenberg's avatar
      RELEASE-NOTES: synced with 6c2c0196 · 871ad2a0
      Daniel Stenberg authored
      871ad2a0