class DownloadController {

    @GetMapping(V1_DOWNLOAD)
    public ResponseEntity<byte[]> download(@RequestParam("url") String downloadUrl,
                                           @RequestHeader Map<String, String> headers) {
        RequestHeaders requestHeaders = RequestHeaders.fromMap(headers);

        Response<byte[]> response = downloadService.download(downloadUrl, requestHeaders);

        return ResponseEntity.status(HttpStatus.OK)
            .headers(headersMapper.toHttpHeaders(response.getHeaders()))
            .body(response.getBody());
    }

    public  DownloadController(DownloadService downloadService, HeadersMapper headersMapper);

}