SpdyHeadersFrame() — netty Function Reference
Architecture documentation for the SpdyHeadersFrame() function in SpdyHttpEncoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 0aeff057_9424_398d_c320_e72e9d1c434b["SpdyHeadersFrame()"] 18ed3381_f0b5_3753_fac7_fb58d0f9ddbb["SpdyHttpEncoder"] 0aeff057_9424_398d_c320_e72e9d1c434b -->|defined in| 18ed3381_f0b5_3753_fac7_fb58d0f9ddbb 4b3a9241_a033_6042_cea3_ac272e0a6928["isLast()"] 0aeff057_9424_398d_c320_e72e9d1c434b -->|calls| 4b3a9241_a033_6042_cea3_ac272e0a6928 style 0aeff057_9424_398d_c320_e72e9d1c434b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyHttpEncoder.java lines 276–314
@SuppressWarnings("deprecation")
private SpdyHeadersFrame createHeadersFrame(HttpResponse httpResponse) throws Exception {
// Get the Stream-ID from the headers
final HttpHeaders httpHeaders = httpResponse.headers();
int streamId = httpHeaders.getInt(SpdyHttpHeaders.Names.STREAM_ID);
httpHeaders.remove(SpdyHttpHeaders.Names.STREAM_ID);
// The Connection, Keep-Alive, Proxy-Connection, and Transfer-Encoding
// headers are not valid and MUST not be sent.
httpHeaders.remove(HttpHeaderNames.CONNECTION);
httpHeaders.remove("Keep-Alive");
httpHeaders.remove("Proxy-Connection");
httpHeaders.remove(HttpHeaderNames.TRANSFER_ENCODING);
SpdyHeadersFrame spdyHeadersFrame;
if (SpdyCodecUtil.isServerId(streamId)) {
spdyHeadersFrame = new DefaultSpdyHeadersFrame(streamId, validateHeaders);
} else {
spdyHeadersFrame = new DefaultSpdySynReplyFrame(streamId, validateHeaders);
}
SpdyHeaders frameHeaders = spdyHeadersFrame.headers();
// Unfold the first line of the response into name/value pairs
frameHeaders.set(SpdyHeaders.HttpNames.STATUS, httpResponse.status().codeAsText());
frameHeaders.set(SpdyHeaders.HttpNames.VERSION, httpResponse.protocolVersion().text());
// Transfer the remaining HTTP headers
Iterator<Entry<CharSequence, CharSequence>> itr = httpHeaders.iteratorCharSequence();
while (itr.hasNext()) {
Map.Entry<CharSequence, CharSequence> entry = itr.next();
final CharSequence headerName =
headersToLowerCase ? AsciiString.of(entry.getKey()).toLowerCase() : entry.getKey();
spdyHeadersFrame.headers().add(headerName, entry.getValue());
}
currentStreamId = streamId;
spdyHeadersFrame.setLast(isLast(httpResponse));
return spdyHeadersFrame;
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does SpdyHeadersFrame() do?
SpdyHeadersFrame() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyHttpEncoder.java.
Where is SpdyHeadersFrame() defined?
SpdyHeadersFrame() is defined in codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyHttpEncoder.java at line 276.
What does SpdyHeadersFrame() call?
SpdyHeadersFrame() calls 1 function(s): isLast.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free