Class HeaderParser
java.lang.Object
org.eclipse.jetty.fcgi.parser.HeaderParser
Parser for the FastCGI frame header.
struct frame_header {
ubyte version;
ubyte type;
ushort requestId;
ushort contentLength;
ubyte paddingLength;
ubyte reserved;
}
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintbooleanparse(ByteBuffer buffer) Parses the bytes in the givenbufferas FastCGI frame header bytesprotected voidreset()
-
Constructor Details
-
HeaderParser
public HeaderParser()
-
-
Method Details
-
parse
Parses the bytes in the givenbufferas FastCGI frame header bytes- Parameters:
buffer- the bytes to parse- Returns:
- whether there were enough bytes for a FastCGI header
-
getFrameType
-
getRequest
public int getRequest() -
getContentLength
public int getContentLength() -
getPaddingLength
public int getPaddingLength() -
reset
protected void reset()
-