public interface

ServerHttpResponse

implements HttpOutputMessage
org.springframework.http.server.ServerHttpResponse
Known Indirect Subclasses

Class Overview

Represents a server-side HTTP response.

Summary

Public Methods
abstract void close()
Close this response, freeing any resources created.
abstract void setStatusCode(HttpStatus status)
Set the HTTP status code of the response.
[Expand]
Inherited Methods
From interface org.springframework.http.HttpMessage
From interface org.springframework.http.HttpOutputMessage

Public Methods

public abstract void close ()

Close this response, freeing any resources created.

public abstract void setStatusCode (HttpStatus status)

Set the HTTP status code of the response.

Parameters
status the HTTP status as an HttpStatus enum value