View Javadoc
1   /*
2    * Copyright 2012 The Netty Project
3    *
4    * The Netty Project licenses this file to you under the Apache License,
5    * version 2.0 (the "License"); you may not use this file except in compliance
6    * with the License. You may obtain a copy of the License at:
7    *
8    *   http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13   * License for the specific language governing permissions and limitations
14   * under the License.
15   */
16  package io.netty.handler.codec.spdy;
17  
18  import io.netty.handler.codec.AsciiString;
19  
20  /**
21   * Provides the constants for the header names used by the {@link SpdyHttpDecoder} and {@link SpdyHttpEncoder}.
22   */
23  public final class SpdyHttpHeaders {
24  
25      /**
26       * SPDY HTTP header names
27       */
28      public static final class Names {
29          /**
30           * {@code "X-SPDY-Stream-ID"}
31           */
32          public static final AsciiString STREAM_ID = new AsciiString("X-SPDY-Stream-ID");
33          /**
34           * {@code "X-SPDY-Associated-To-Stream-ID"}
35           */
36          public static final AsciiString ASSOCIATED_TO_STREAM_ID = new AsciiString("X-SPDY-Associated-To-Stream-ID");
37          /**
38           * {@code "X-SPDY-Priority"}
39           */
40          public static final AsciiString PRIORITY = new AsciiString("X-SPDY-Priority");
41          /**
42           * {@code "X-SPDY-Scheme"}
43           */
44          public static final AsciiString SCHEME = new AsciiString("X-SPDY-Scheme");
45  
46          private Names() { }
47      }
48  
49      private SpdyHttpHeaders() { }
50  }