You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But to parse multipart/form-data I need to know the boundary, which is specified inside of Content-Type header: multipart/form-data; boundary=<BOUNDARY>
Inside of NewDecoder(r io.Reader) runtime.Decoder method I get io.Reader with only request body. At the same time, in debugger I see that io.Reader's underlying byte buffer contains the whole request (with headers), but the offset is set right before the body.
Is there any options to get r io.Reader with headers?
The text was updated successfully, but these errors were encountered:
You won't be able to pass headers into the marshaler, but you can combine a custom marshaler with a forwardResponseOption as described in #4483 (comment).
📚 Documentation
I want to send data from client in multipart/form-data. And I want to parse it into proto-object with custom Marshaller.
But to parse multipart/form-data I need to know the boundary, which is specified inside of Content-Type header:
multipart/form-data; boundary=<BOUNDARY>
Inside of
NewDecoder(r io.Reader) runtime.Decoder
method I get io.Reader with only request body. At the same time, in debugger I see that io.Reader's underlying byte buffer contains the whole request (with headers), but the offset is set right before the body.Is there any options to get
r io.Reader
with headers?The text was updated successfully, but these errors were encountered: