Class HttpTester.Request

    • Constructor Detail

      • Request

        public Request()
    • Method Detail

      • startRequest

        public void startRequest​(java.lang.String method,
                                 java.lang.String uri,
                                 HttpVersion version)
        Description copied from interface: HttpParser.RequestHandler
        This is the method called by parser when the HTTP request line is parsed
        Specified by:
        startRequest in interface HttpParser.RequestHandler
        Parameters:
        method - The method
        uri - The raw bytes of the URI. These are copied into a ByteBuffer that will not be changed until this parser is reset and reused.
        version - the http version in use
      • getMethod

        public java.lang.String getMethod()
      • getUri

        public java.lang.String getUri()
      • setMethod

        public void setMethod​(java.lang.String method)
      • setURI

        public void setURI​(java.lang.String uri)
      • setHeader

        public void setHeader​(java.lang.String name,
                              java.lang.String value)