Interface HttpResponseFactory<T extends HttpResponse>

    • Method Detail

      • newHttpResponse

        T newHttpResponse​(int status,
                          java.lang.String reasonPhrase)
        Creates response message with the given code and reason phrase.
        Parameters:
        status - the status code
        reasonPhrase - the reason phrase
        Returns:
        response message
        Since:
        5.0
      • newHttpResponse

        T newHttpResponse​(int status)
        Creates a new response with the given code.
        Parameters:
        status - the status code
        Returns:
        response message