Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Transfer-Encoding in OpenApi document #95

Open
jander-msft opened this issue Mar 18, 2021 · 1 comment
Open

Add Transfer-Encoding in OpenApi document #95

jander-msft opened this issue Mar 18, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@jander-msft
Copy link
Member

jander-msft commented Mar 18, 2021

In the OpenAPI document, Should add Transfer-Encoding: chunked to all responses that return streamed data with indeterminate length. This may help OAS tooling to understand to return Stream types rather than fixed length deserialization.

Re: OAI/OpenAPI-Specification#1576 (comment)

@wiktork
Copy link
Member

wiktork commented Mar 18, 2021

We should be already doing this. Sample from /trace:

Content-Disposition: attachment; filename=20210318_190121_25328.nettrace
Content-Type: application/octet-stream
Date: Thu, 18 Mar 2021 19:01:21 GMT
Server: Kestrel
Transfer-Encoding: chunked

Edit: My mistake, you mean the openapi spec, not the response itself.

@jander-msft jander-msft added this to the GA milestone Mar 18, 2021
@jander-msft jander-msft added the enhancement New feature or request label Apr 17, 2021
@wiktork wiktork modified the milestones: GA, Preview 6 Jun 8, 2021
@jander-msft jander-msft self-assigned this Jul 6, 2021
@jander-msft jander-msft modified the milestones: Preview 6, Preview 7 Jul 13, 2021
@kelltrick kelltrick modified the milestones: Preview 7, Preview 8 Aug 26, 2021
@wiktork wiktork modified the milestones: Preview 8, Future Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants