Giter VIP home page Giter VIP logo

Comments (4)

arya6000 avatar arya6000 commented on June 1, 2024 9

any update on this feature?

from mitmweb.

cle1000 avatar cle1000 commented on June 1, 2024

there are several ways to solve this problem:

  1. send the content with the flow to the client, so we can search the content on the client side
  2. 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
  3. 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
  4. 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.

mhils avatar mhils commented on June 1, 2024

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.

cle1000 avatar cle1000 commented on June 1, 2024

@cortesi: what do you think? i should implement this in the next two weeks as my "last" gsoc feature :)

from mitmweb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.