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

[Feature Request] Should we allow to specify custom headers for a part of a multipart request? #2856

Open
MaryGao opened this issue Jan 30, 2024 · 1 comment
Labels
design:needed A design request has been raised that needs a proposal needs-area
Milestone

Comments

@MaryGao
Copy link
Member

MaryGao commented Jan 30, 2024

I notice that in swagger spec we allow to specify custom headers for a part of a multipart request, can we define a custom header in TypeSpec? https://swagger.io/docs/specification/describing-request-body/multipart-requests/

POST /upload HTTP/1.1
Content-Length: 428
Content-Type: multipart/form-data; boundary=abcde12345

--abcde12345
Content-Disposition: form-data; name="id"
Content-Type: text/plain

123e4567-e89b-12d3-a456-426655440000
--abcde12345
Content-Disposition: form-data; name="profileImage"; filename="image1.png"
Content-Type: image/png
X-Custom-Header: x-header

{…file content…}
--abcde12345--

/cc @lirenhe

@MaryGao MaryGao changed the title [Feature Request] Should we allow to specifying custom headers for a part of a multipart request? [Feature Request] Should we allow to specify custom headers for a part of a multipart request? Jan 30, 2024
@markcowl markcowl assigned markcowl and unassigned markcowl Feb 5, 2024
@markcowl markcowl added this to the Backlog milestone Feb 7, 2024
@markcowl markcowl added the design:needed A design request has been raised that needs a proposal label Feb 7, 2024
@MaryGao
Copy link
Member Author

MaryGao commented Feb 28, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design:needed A design request has been raised that needs a proposal needs-area
Projects
None yet
Development

No branches or pull requests

2 participants