接口 ServerHttpResponse

    • 方法详细资料

      • setStatusCode

        void setStatusCode​(HttpStatus status)
        Set the HTTP status code of the response.
        参数:
        status - the HTTP status as an HttpStatus enum value
      • flush

        void flush()
            throws IOException
        Ensure that the headers and the content of the response are written out.

        After the first flush, headers can no longer be changed. Only further content writing and content flushing is possible.

        指定者:
        flush 在接口中 Flushable
        抛出:
        IOException