ExampleHeaders.java — netty Source File
Architecture documentation for ExampleHeaders.java, a java file in the netty codebase.
Entity Profile
Relationship Graph
Source Code
/*
* Copyright 2015 The Netty Project
*
* The Netty Project licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
package io.netty.microbench.headers;
import java.util.EnumMap;
import java.util.HashMap;
import java.util.Map;
public final class ExampleHeaders {
public enum HeaderExample {
THREE,
FIVE,
SIX,
EIGHT,
ELEVEN,
TWENTYTWO,
THIRTY
}
public static final Map<HeaderExample, Map<String, String>> EXAMPLES =
new EnumMap<HeaderExample, Map<String, String>>(HeaderExample.class);
static {
Map<String, String> header = new HashMap<String, String>();
header.put(":method", "GET");
header.put(":scheme", "https");
header.put(":path", "/index.html");
EXAMPLES.put(HeaderExample.THREE, header);
// Headers used by Norman's HTTP benchmarks with wrk
header = new HashMap<String, String>();
header.put("Method", "GET");
header.put("Path", "/plaintext");
header.put("Host", "localhost");
header.put("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8");
header.put("Connection", "keep-alive");
EXAMPLES.put(HeaderExample.FIVE, header);
header = new HashMap<String, String>();
header.put(":authority", "127.0.0.1:33333");
header.put(":method", "POST");
header.put(":path", "/grpc.testing.TestService/UnaryCall");
header.put(":scheme", "http");
header.put("content-type", "application/grpc");
header.put("te", "trailers");
EXAMPLES.put(HeaderExample.SIX, header);
// ... (89 more lines)
Domain
Subdomains
Classes
Types
Source
Frequently Asked Questions
What does ExampleHeaders.java do?
ExampleHeaders.java is a source file in the netty codebase, written in java. It belongs to the Buffer domain, Telemetry subdomain.
Where is ExampleHeaders.java in the architecture?
ExampleHeaders.java is located at microbench/src/main/java/io/netty/microbench/headers/ExampleHeaders.java (domain: Buffer, subdomain: Telemetry, directory: microbench/src/main/java/io/netty/microbench/headers).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free