-
Notifications
You must be signed in to change notification settings - Fork 38
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
Is multipart/mixed with nested application/http supported? #507
Comments
@jods4 I have not known this format at all. Currently, the parser does not recognize subrequests and the previous request is completed at the subrequest. This is because I try to recognize one request per line and everything that is not a new request is evaluated as the body of the previous request. I wanted to enable a kibana like usage. I would now offer that
For me, only the first request part is sent. Could it be that your server component then waits for further request parts and produces the timeout?
If you have errors, just report them, preferably with example that I can run directly, for example against httpbin.org. |
|
Thanks, I'm gonna try it out! Notice that if you detect/parse the The request might not be well-formed at parsing time, so a slightly better strategy is probably to consume all body up to (If you choose to go this route, note that |
I have still implemented that :-). However, it would also be possible to import the request body using |
I see, the end of request So:
This all sound very reasonable to me, thanks. 👍 I agree importing files at parsing time is certainly excessive, even if it's just for the multipart edge case. |
:-) This issue is the reason why it is fun to make this App. I learned something new, Talked about some implementation detail and got some positive Feedback. Thx. |
I'm trying to send a multipart/mixed request, that contains nested http requests (this is request batching, e.g. as supported by OData standard).
VS Code seems to be confused by the subrequests -> it shows the run controls on every line that matches an http request, but that's not important.
When I click the topmost request to run it, httpyac goes into a loop with no feedback until something times out eventually.
There's no message on either of the 3 httpyac outputs (console, log, request).
Based on previous experiences with httpyac, my guess is that it crashed while preparing the http request.
The text was updated successfully, but these errors were encountered: