Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 373 Bytes

File metadata and controls

20 lines (14 loc) · 373 Bytes

< Back

CreateResponse

This is a class to create pure response.

import org.springframework.http.ResponseEntity
import io.github.jderstd.spring.response.CreateResponse

val response: ResponseEntity<String> = CreateResponse<String>()
    .body("Hello, World!")
    .create()

And the response will be shown as below:

Hello, World!