Class HttpContentRequest

    • Constructor Detail

      • HttpContentRequest

        public HttpContentRequest​(java.lang.String method,
                                  java.lang.String url)
                           throws java.net.MalformedURLException
        Throws:
        java.net.MalformedURLException
      • HttpContentRequest

        public HttpContentRequest​(java.lang.String method,
                                  java.net.URL url)
    • Method Detail

      • hasContent

        public boolean hasContent()
        Returns:
        If this request has content
      • getContent

        @Nullable
        public HttpContent getContent()
        Returns:
        The content of this request
      • setContent

        public HttpRequest setContent​(@Nullable
                                      HttpContent content)
        Set the content of this request.
        Parameters:
        content - The content to set
        Returns:
        This instance for chaining