-
Notifications
You must be signed in to change notification settings - Fork 360
Line ending support and content length addition #244
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
Line ending support and content length addition #244
Comments
@ArnoldBraine I understood what you were trying to say but can you give one more example with different content type ( maybe xml ) ? would be helpful to create a patch for this. |
@someshkoli here is an example of the generated HTTP code using xml als content what it should be:
The line endings are required for that library i think, it would maybe be nice to have it as an option so you can turn it on or off as a user So in the end with line endings enabled and content length added to the code you would have something in the lines of that would be easy to copy and paste: |
Is your feature request related to a problem? Please describe.
I was coding a program in C using the winsock library, this requires met to create a message string in which the HTTP code gen helped me loads but it starts to become a problem when you need to escape the \r and \n. Also the generated code that the HTTP code generate suggested didn't work because of the content length not being there
Describe the solution you'd like
add an option to see line endings and add the content-length
Additional context
"POST / HTTP/1.1\r\nHost: 127.0.0.1\r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 10\r\n\r\n{"test":1}\r\n
The text was updated successfully, but these errors were encountered: