Home / Function/ writeFrameZeroPayload() — netty Function Reference

writeFrameZeroPayload() — netty Function Reference

Architecture documentation for the writeFrameZeroPayload() function in DefaultHttp2FrameWriterTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  e84a2955_0029_3e1a_568e_cfe327e62dc4["writeFrameZeroPayload()"]
  602c48d7_d78b_d8f3_745e_26d2ab6ce0f2["DefaultHttp2FrameWriterTest"]
  e84a2955_0029_3e1a_568e_cfe327e62dc4 -->|defined in| 602c48d7_d78b_d8f3_745e_26d2ab6ce0f2
  style e84a2955_0029_3e1a_568e_cfe327e62dc4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2FrameWriterTest.java lines 297–310

    @Test
    public void writeFrameZeroPayload() throws Exception {
        frameWriter.writeFrame(ctx, (byte) 0xf, 0, new Http2Flags(), Unpooled.EMPTY_BUFFER, promise);

        byte[] expectedFrameBytes = {
                (byte) 0x00, (byte) 0x00, (byte) 0x00, // payload length
                (byte) 0x0f, // payload type
                (byte) 0x00, // flags
                (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00 // stream id
        };

        expectedOutbound = Unpooled.wrappedBuffer(expectedFrameBytes);
        assertEquals(expectedOutbound, outbound);
    }

Domain

Subdomains

Frequently Asked Questions

What does writeFrameZeroPayload() do?
writeFrameZeroPayload() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2FrameWriterTest.java.
Where is writeFrameZeroPayload() defined?
writeFrameZeroPayload() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2FrameWriterTest.java at line 297.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free