Comments (4)
any update on this feature?
from mitmweb.
there are several ways to solve this problem:
- send the content with the flow to the client, so we can search the content on the client side
- send the filter to the server with a request and get the a list with matched flows back, do that on every flowupdate, flowadd,... event
- send the filter to the server with a request and get the a list with matched flows back, the server should also store the filters from the client and adds to each flow a field on which filters that flow matches
- send the filter to the server, the server adds an information to all flows -> flows will be automatically updated and so we have the needed information.
what do you think? do you have more ideas ?
from mitmweb.
Thanks for the write-up @cle1000.
@cortesi: Content search is maybe one of the most tricky parts we have - what are you thoughts on this? This is also a feature that does not really translate to our static viewer, so I'd be interested to hear your thoughts.
My five cents: 1 is a possible resource hog - not what we want. 3 and 4 are nice solutions, but this implies keeping state on the server and interleaving filter/highlight logic with the whole flow list components. I'm a bit a fraid that this ends up as spaghetti. 2 is not really pretty, but leaves all flow content searching in an isolated place/API. The main issue here would be that once we receive a flow update, we need to do an asynchronous request to the server, leaving a small time period in between where we don't know how to handle the flow. for positive/"show only" filters that probably wouldn't be too bad, as they just stay hidden for a bit longer. For negative filters, we'd have flows show up incorrectly and then quickly disappear again - that sucks, but might be enough of an edge case that we don't need to care about it.
from mitmweb.
@cortesi: what do you think? i should implement this in the next two weeks as my "last" gsoc feature :)
from mitmweb.
Related Issues (20)
- Use bindActionsCreator to simplify flowActions dispatch
- Flatten Settings Ducks HOT 1
- Better Keyboard Navigation HOT 1
- Remove jQuery
- Add Favicon
- Windows Commands to Start Up mitmweb in Transparent Mode HOT 1
- Fix Tests
- Only transmit changed attributes in stopEdit
- Flow update changes list order
- Make headers completely clickable
- Move ValueEditor/*.jsx into common/*.jsx HOT 2
- Evaluate react-router alternatives
- Response body edit > 100 lines HOT 5
- Options Editor HOT 2
- Help Page HOT 1
- Consider Typescript HOT 7
- Command interface
- reatach sessions HOT 1
- Flow Sort is not stable HOT 2
- Relative paths for resources (js, css, images, websockets, etc). HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mitmweb.