HttpContent() — netty Function Reference
Architecture documentation for the HttpContent() function in HttpPostRequestEncoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD cc4800a0_5a43_776f_64af_94727277831c["HttpContent()"] 1f646438_907e_54fe_bc9e_a9535d782cc8["HttpPostRequestEncoder"] cc4800a0_5a43_776f_64af_94727277831c -->|defined in| 1f646438_907e_54fe_bc9e_a9535d782cc8 156929ac_dd34_b8ae_7579_14a87e4c6842["ErrorDataEncoderException()"] cc4800a0_5a43_776f_64af_94727277831c -->|calls| 156929ac_dd34_b8ae_7579_14a87e4c6842 b613b6ac_07e2_2f77_6177_b9faf1d44b50["calculateRemainingSize()"] cc4800a0_5a43_776f_64af_94727277831c -->|calls| b613b6ac_07e2_2f77_6177_b9faf1d44b50 style cc4800a0_5a43_776f_64af_94727277831c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/http/multipart/HttpPostRequestEncoder.java lines 884–915
private HttpContent encodeNextChunkMultipart(int sizeleft) throws ErrorDataEncoderException {
if (currentData == null) {
return null;
}
ByteBuf buffer;
if (currentData instanceof InternalAttribute) {
buffer = ((InternalAttribute) currentData).toByteBuf();
currentData = null;
} else {
try {
buffer = ((HttpData) currentData).getChunk(sizeleft);
} catch (IOException e) {
throw new ErrorDataEncoderException(e);
}
if (buffer.capacity() == 0) {
// end for current InterfaceHttpData, need more data
currentData = null;
return null;
}
}
if (currentBuffer == null) {
currentBuffer = buffer;
} else {
currentBuffer = wrappedBuffer(currentBuffer, buffer);
}
if (currentBuffer.readableBytes() < HttpPostBodyUtil.chunkSize) {
currentData = null;
return null;
}
buffer = fillByteBuf();
return new DefaultHttpContent(buffer);
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does HttpContent() do?
HttpContent() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/multipart/HttpPostRequestEncoder.java.
Where is HttpContent() defined?
HttpContent() is defined in codec-http/src/main/java/io/netty/handler/codec/http/multipart/HttpPostRequestEncoder.java at line 884.
What does HttpContent() call?
HttpContent() calls 2 function(s): ErrorDataEncoderException, calculateRemainingSize.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free