Better HN
topnewbestaskshowjobs
Log inSign up

zerocool2750

5 karma · joined Mar 16, 2018 (8y ago) · 6 submissions

Submissions

comment 2y ago · link · parent

Went spelunking through the source. I think you absolutely could!

There's actually not a whole lot I found that's really http-library specific. It uses the traceback module in a decorator that ends up being manually wrapped around all of the functions of the specific libraries the author cared about.

https://github.com/cle-b/httpdbg/blob/main/httpdbg/hooks

Should be easy enough to extend this to other libraries.

Super cool tool thanks for sharing @dmurray!

comment 7y ago · link · parent

I think you might have a typo in your FAQ.

"Does the server have to specify the client host? No!..... The server does need to have any unique prior knowledge about the client. "

Should that read, "The server does NOT need to have any unique...." ?

comment 7y ago · link · parent

TIL chrome has a task manager. Thanks for posting the shortcut! +1

comment 7y ago · link · parent

Totally makes sense I just think it's slightly confusing in that context. Anyway, awesome article I enjoyed the read!

comment 7y ago · link · parent

In the knapsack example they say...

> "No global variables should be modifed in the function"

Am I wrong or does the author immediately go on to modify the global variable 'dp'

p.s. @author typo in that sentence 'modifed'