-
-
Notifications
You must be signed in to change notification settings - Fork 70
Fix Issue #509 #634
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
base: main
Are you sure you want to change the base?
Fix Issue #509 #634
Conversation
Hey! @GlenDC @soundofspace Got a very rudimentary implementation going, can I get a quick informal review on this before finishing implementation? |
@@ -0,0 +1,22 @@ | |||
//! This example demonstrates how to use the http curl command |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file is to be deleted as discussed in the parent isuse
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, using this as a temporary driver. Will delete before finishing up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a good start. Next to my comments and fact that you also want to add a good test suite for this (e.g. as curl/tests.rs
) I also would say:
- do not forget about checking the extension
ProxyAddress
(which defines if you need to set a proxy) - there might be some other stuff but cannot think of it now
- once your finished with code + tests, also add it to the EchoService core code please
@soundofspace might have some more feedback as well.
Either way, well done. Definitely well on your way in resolving this.
@GlenDC @soundofspace Hey hey! Running into a small issue here: how do I get the body data to convert to Bytes? Can't seem to figure this one out, any pointers would be much appreciated :) |
👇 Line 460 in d332fd1
|
@GlenDC Got it, thanks. Also, do you have any to check if a Proxy is enabled? |
Probably gonna change a tiny bit in near future but for now you can check if something like that in hybrid pseudo code |
Got it, thanks. And one last thing - is a string a valid body type? I presume not, in that case is this the right approach to testing with a stream? |
You are confusing different kinds of echo services. You are linking to a stream echo service. That lives on the transport layer. That's different from the echo service which I was linking you that works with http on the application layer. The first lives on the transport layer (e.g. tcp) and just echo's back the incoming bytes as-is. You can as a human easily play with it using tooling like But this is nothing to do with your work here. Different kind of echo service. |
In-progress.