Interface IHttpRequest


  • public interface IHttpRequest
    Http Request. Allows addition of headers and execution of the request.
    • Method Detail

      • addHeader

        void addHeader​(String theName,
                       String theValue)
        Add a header to the request
        Parameters:
        theName - the header name
        theValue - the header value
      • getRequestBodyFromStream

        String getRequestBodyFromStream()
                                 throws IOException
        Return the request body as a string. If this is not supported by the underlying technology, null is returned
        Returns:
        a string representation of the request or null if not supported or empty.
        Throws:
        IOException
      • removeHeaders

        void removeHeaders​(String theHeaderName)
        Remove any headers matching the given name
        Parameters:
        theHeaderName - The header name, e.g. "Accept" (must not be null or blank)