hpack.go 700 B

12345678910111213141516171819202122
  1. // Copyright 2014 The Go Authors.
  2. // See https://code.google.com/p/go/source/browse/CONTRIBUTORS
  3. // Licensed under the same terms as Go itself:
  4. // https://code.google.com/p/go/source/browse/LICENSE
  5. // Package hpack implements HPACK, a compression format for
  6. // efficiently representing HTTP header fields in the context of HTTP/2.
  7. //
  8. // See http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-08
  9. package hpack
  10. // A HeaderField is a name-value pair. Both the name and value are
  11. // treated as opaque sequences of octets.
  12. type HeaderField struct {
  13. Name, Value string
  14. }
  15. // A Decoder is the decoding context for incremental processing of
  16. // header blocks.
  17. type Decoder struct {
  18. // ...
  19. }