Class Request


  • public class Request
    extends Object
    A Request object that is associated with an Error.
    Since:
    0.0.1
    • Constructor Detail

      • Request

        public Request​(String URI,
                       String[] headers,
                       String payload)
        Create a Request object.
        Parameters:
        URI - the URI of the request
        headers - an array of headers that were sent in the request
        payload - the payload that was sent in the request
    • Method Detail

      • getURI

        public String getURI()
        Get the URI to which the request was sent.
        Returns:
        the URI string
      • getHeaders

        public String[] getHeaders()
        Get the headers that were sent in the request.
        Returns:
        a String array of headers
      • getPayload

        public String getPayload()
        Get the payload that was sent in the request.
        Returns:
        the payload of the request