Package org.eclipse.jetty.fcgi.parser
Class HeaderParser
java.lang.Object
org.eclipse.jetty.fcgi.parser.HeaderParser
Parser for FastCGI frame headers.
struct frame_header { ubyte version; ubyte type; ushort requestId; ushort contentLength; ubyte paddingLength; ubyte reserved; }
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
boolean
parse
(ByteBuffer buffer) Parses the bytes in the givenbuffer
as FastCGI header bytesprotected void
reset()
-
Field Details
-
LOG
-
state
-
cursor
private int cursor -
version
private int version -
type
private int type -
request
private int request -
length
private int length -
padding
private int padding
-
-
Constructor Details
-
HeaderParser
public HeaderParser()
-
-
Method Details
-
parse
Parses the bytes in the givenbuffer
as FastCGI 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()
-