接口的使用
cn.taketoday.http.ResponseEntity.HeadersBuilder
-
cn.taketoday.http中ResponseEntity.HeadersBuilder的使用
修饰符和类型接口说明static interfaceResponseEntity.HeadersBuilder<B extends ResponseEntity.HeadersBuilder<B>>Defines a builder that adds headers to the response entity.修饰符和类型接口说明static interfaceDefines a builder that adds a body to the response entity.修饰符和类型方法说明static ResponseEntity.HeadersBuilder<?>ResponseEntity.noContent()Create a builder with a NO_CONTENT status.static ResponseEntity.HeadersBuilder<?>ResponseEntity.notFound()Create a builder with a NOT_FOUND status.static ResponseEntity.HeadersBuilder<?>ResponseEntity.of(ProblemDetail body) Create a newResponseEntity.HeadersBuilderwith its status set toProblemDetail.getStatus()and its body is set toProblemDetail.