Interface GitHubConnectorRequest

    • Method Detail

      • method

        @Nonnull
        String method()
        The request method for this request. For example, GET or PATCH.
        Returns:
        the request method.
      • header

        @CheckForNull
        String header​(String name)
        Gets the value contained in a header field.
        Parameters:
        name - the name of the field.
        Returns:
        the value contained in that field, or null if not present.
      • contentType

        @CheckForNull
        String contentType()
        Get the content type for the body of this request.
        Returns:
        the content type string for the body of this request.
      • body

        @CheckForNull
        InputStream body()
        Gets the request body as an InputStream.
        Returns:
        the request body as an InputStream.
      • url

        @Nonnull
        URL url()
        Gets the url for this request.
        Returns:
        the url for this request.
      • hasBody

        boolean hasBody()
        Gets whether the request has information in body() that needs to be sent.
        Returns:
        true, if the body is not null. Otherwise, false.