Package 

Interface InterceptableHTTPRequest

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • getMethod

         abstract String getMethod()

        The mutable method for the URL request, one of:

        "GET", "POST", "HEAD", "OPTIONS", "PUT", "DELETE", "TRACE"

      • setMethod

         abstract Unit setMethod(String method)

        The mutable method for the URL request, one of:

        "GET", "POST", "HEAD", "OPTIONS", "PUT", "DELETE", "TRACE"

      • getUrl

         abstract URL getUrl()

        The mutable URL to perform the request to.

      • setUrl

         abstract Unit setUrl(URL url)

        The mutable URL to perform the request to.

      • getHeaders

         abstract Map<String, String> getHeaders()

        The mutable request headers to be used during the request.

        In case of multiple values per key, the values are comma separated.

        Adding or overriding headers can be done by:

        headers["newKey"] = "newValue"

      • setHeaders

         abstract Unit setHeaders(Map<String, String> headers)

        The mutable request headers to be used during the request.

        In case of multiple values per key, the values are comma separated.

        Adding or overriding headers can be done by:

        headers["newKey"] = "newValue"

      • getBody

         abstract ByteArray getBody()

        The mutable request body to be used during a POST or PUT request.

      • setBody

         abstract Unit setBody(ByteArray body)

        The mutable request body to be used during a POST or PUT request.