Created
July 10, 2019 21:25
-
-
Save auryn31/fb90a27e98e9e9afa8a8865ef80a93d8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Controller | |
class RestEndpoint { | |
var streamResponse: CSVStreamResponseOutput | |
constructor(csvStreamResponseOutput: CSVStreamResponseOutput) { | |
this.streamResponse = csvStreamResponseOutput | |
} | |
@GetMapping(path = ["stream"], produces = [MediaType.APPLICATION_STREAM_JSON_VALUE]) | |
@ResponseBody | |
fun getCSVAsStreamWithExtraEndpointForLocust(): StreamingResponseBody { | |
return streamResponse | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment