Interface Response

  • All Superinterfaces:
    WriteStream<Buffer>

    public interface Response
    extends WriteStream<Buffer>
    Represents a server-side HTTP response.
    Author:
    David BRASSELY (david.brassely at graviteesource.com), GraviteeSource Team
    • Method Detail

      • status

        Response status​(int statusCode)
      • status

        int status()
      • reason

        String reason()
        Reason-Phrase is intended to give a short textual description of the Status-Code.
        Returns:
      • headers

        HttpHeaders headers()
        Returns:
        the headers in the response.
      • ended

        boolean ended()
        Returns:
        has the response already ended?