well i just tried to implement the basic concept of a proxy server, i.e
- intercept the request
handle the request,(make necessary changes to the request)
perform the modified request
handle the response,(make necessary changes to the response)
send the modified reponse to the user.
It’s working great with the curl and httpie, but it is not working well enough when it comes to browsers
I wish that i knew factor.io before nonsenso.
It was always messy to manage a site using different services.
in python it’s quite difficult allocate single bit for coloring a node as every thing in python is reference based. so it’s a nice practice to borrow a bit from the height of the red black tree, i.e just increment the height in 2’s and if the color is black just add one or else leave it. and we can retrieve the bit using
height & 1 or
height % 2
just extending the previous binary search tree code
the beauty of python