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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement filtering requests by method #19
Implement filtering requests by method #19
Conversation
@@ -91,6 +92,7 @@ impl HttpHandler for Output { | |||
|
|||
#[derive(Clone, Debug)] | |||
pub struct OutputRequest { | |||
http_method: Method, | |||
method: String, |
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.
Here, I wasn't sure why the items were converted into Strings. My guess is to stop heap allocations each frame or a similar performance concern, but if not, then maybe the http_method
field is an adequate replacement for the existing method
field.
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.
A rude truth: string conversions sucks and it is bad practice in this case but it was my first approach to gui and as the first versions was comfortable. One fo the next steps is to avoid the String conversion on everything. For now thank you very much for your effort, i review the code today.
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.
thank you very much for your work, I'm creating a new issue regarding the string convertion (that sucks), I can assign this issue to you if you want
That would be great! |
Awesome, the issue is #20 I hope I have made myself clear in the description |
Hello! My name is Marcel and I'm a recent Bachelor's graduate and Rust enthusiast 馃. I saw your posting on TWIR Call for Participation, and it seemed like a perfect avenue for my first open source contribution, closes #6.
feature.method_filter.demo.mov
I did my best to maintain the existing inline style of the code, and no keep the filter minimally intrusive visually. Please let me know if there's anything you'd like me to change :)