Package kilim.http

Class HttpRequest

java.lang.Object
kilim.http.HttpMsg
kilim.http.HttpRequest

public class HttpRequest extends HttpMsg
This object encapsulates a bytebuffer (via HttpMsg). HttpRequestParser creates an instance of this object, but only converts a few of the important fields into Strings; the rest are maintained as ranges (offset + length) in the bytebuffer. Use getHeader(String) to get the appropriate field.
  • Field Details

    • method

      public String method
      The original header. All string variables that pertain to the message's header are either subsequences of this header, or interned (all known keywords).
    • uriPath

      public String uriPath
      The UTF8 decoded path from the HTTP header.
    • nFields

      public int nFields
    • keys

      public String[] keys
      Keys present in the HTTP header
    • versionRange

      public int versionRange
    • uriFragmentRange

      public int uriFragmentRange
    • queryStringRange

      public int queryStringRange
    • valueRanges

      public int[] valueRanges
    • contentOffset

      public int contentOffset
    • contentLength

      public int contentLength
    • iread

      public int iread
      The read cursor, used in the read* methods.
    • CR

      public static byte CR
    • LF

      public static byte LF
    • b0

      static final byte b0
      See Also:
    • b9

      static final byte b9
      See Also:
    • ba

      static final byte ba
      See Also:
    • bf

      static final byte bf
      See Also:
    • bA

      static final byte bA
      See Also:
    • bF

      static final byte bF
      See Also:
    • SEMI

      static final byte SEMI
      See Also:
  • Constructor Details

    • HttpRequest

      public HttpRequest()
  • Method Details