public StatusHeader()
     : base(":status", http2StaticIndex: 8)
 {
     OK                  = new PreparedHeader(this, "200", http2StaticIndex: 8);
     NoContent           = new PreparedHeader(this, "204", http2StaticIndex: 9);
     PartialContent      = new PreparedHeader(this, "206", http2StaticIndex: 10);
     NotModified         = new PreparedHeader(this, "304", http2StaticIndex: 11);
     BadRequest          = new PreparedHeader(this, "400", http2StaticIndex: 12);
     NotFound            = new PreparedHeader(this, "404", http2StaticIndex: 13);
     InternalServerError = new PreparedHeader(this, "500", http2StaticIndex: 14);
 }
Esempio n. 2
0
 public MethodHeader()
     : base(":method", http2StaticIndex: 2)
 {
     Get  = new PreparedHeader(this, "GET", http2StaticIndex: 2);
     Post = new PreparedHeader(this, "POST", http2StaticIndex: 3);
 }
 public SchemeHeader()
     : base(":scheme", http2StaticIndex: 6)
 {
     Http  = new PreparedHeader(this, "http", http2StaticIndex: 6);
     Https = new PreparedHeader(this, "https", http2StaticIndex: 7);
 }
Esempio n. 4
0
 internal AcceptEncodingHeader()
     : base("Accept-Encoding", http2StaticIndex: 16)
 {
     GzipDeflate = new PreparedHeader(this, "gzip, deflate", http2StaticIndex: 16);
 }
Esempio n. 5
0
 public PathHeader()
     : base(":path", http2StaticIndex: 4)
 {
     Root      = new PreparedHeader(this, "/", http2StaticIndex: 4);
     IndexHtml = new PreparedHeader(this, "/index.html", http2StaticIndex: 5);
 }