public class HeaderParser
extends java.lang.Object
Parser for FastCGI frame headers.
struct frame_header { ubyte version; ubyte type; ushort requestId; ushort contentLength; ubyte paddingLength; ubyte reserved; }
Parser
Constructor and Description |
---|
HeaderParser() |
Modifier and Type | Method and Description |
---|---|
int |
getContentLength() |
FCGI.FrameType |
getFrameType() |
int |
getPaddingLength() |
int |
getRequest() |
boolean |
parse(java.nio.ByteBuffer buffer)
Parses the bytes in the given
buffer as FastCGI header bytes |
protected void |
reset() |
public boolean parse(java.nio.ByteBuffer buffer)
buffer
as FastCGI header bytesbuffer
- the bytes to parsepublic FCGI.FrameType getFrameType()
public int getRequest()
public int getContentLength()
public int getPaddingLength()
protected void reset()
Copyright © 1995–2023 Webtide. All rights reserved.