@@ -124,7 +124,6 @@ def __init__(
124
124
self ,
125
125
* ,
126
126
background : BackgroundTask | BackgroundTasks | None = None ,
127
- body : bytes | str = b"" ,
128
127
chunk_size : int = ONE_MEGABYTE ,
129
128
content_disposition_type : Literal ["attachment" , "inline" ] = "attachment" ,
130
129
content_length : int | None = None ,
@@ -146,7 +145,6 @@ def __init__(
146
145
147
146
Args:
148
147
background: A background task or a list of background tasks to be executed after the response is sent.
149
- body: encoded content to send in the response body.
150
148
chunk_size: The chunk size to use.
151
149
content_disposition_type: The type of the ``Content-Disposition``. Either ``inline`` or ``attachment``.
152
150
content_length: The response content length.
@@ -181,7 +179,6 @@ def __init__(
181
179
cookies = cookies ,
182
180
background = background ,
183
181
status_code = status_code ,
184
- body = body ,
185
182
content_length = content_length ,
186
183
encoding = encoding ,
187
184
is_head_response = is_head_response ,
@@ -370,7 +367,6 @@ def to_asgi_response(
370
367
"""Create an :class:`ASGIFileResponse <litestar.response.file.ASGIFileResponse>` instance.
371
368
372
369
Args:
373
- app: The :class:`Litestar <.app.Litestar>` application instance.
374
370
background: Background task(s) to be executed after the response is sent.
375
371
cookies: A list of cookies to be set on the response.
376
372
encoded_headers: A list of already encoded headers.
@@ -394,7 +390,6 @@ def to_asgi_response(
394
390
395
391
return ASGIFileResponse (
396
392
background = self .background or background ,
397
- body = b"" ,
398
393
chunk_size = self .chunk_size ,
399
394
content_disposition_type = self .content_disposition_type , # pyright: ignore
400
395
content_length = 0 ,
0 commit comments