Questions tagged [proxy]
A proxy is a device or program that stands between two or more interconnected programs or devices. Reasons for a proxy include one or more connected parties only wanting the other to access specific data. A proxy provides a method for this.
47 questions
4votes
0answers
125views
A simple local API proxy
Recently I needed to support someone who wanted to ingest some data from on of our API's but had tooling that struggled with the authentication bit. While I'm sure there are some off-the-shelf ...
7votes
3answers
811views
Optimizing Vector 2D Length Comparisons in C++
I've encountered a readability issue in C++ when comparing the length of a vector to a scalar. Commonly, I see solutions like this: ...
5votes
3answers
248views
Socks4 Client/Server implementation
I implemented a basic Socks4 client and server which can handle CONNECT requests only right now also without identfication protocol support. I've tested it with a ...
1vote
0answers
106views
Rotating pool of proxies
It's a very simple class to get a different proxy each time it's called. I've done it because I was trying to use aiohttp_scraper and it didn't work so I have to make my own. This is just one of the ...
2votes
1answer
257views
A proxy class as a generic replacement for getters and setters v2
Have you ever written proxy objects, instead of using a setter and a getter method? In that case, I'm interested in your opinion on the following design for a templated proxy. This is a second version,...
1vote
1answer
617views
Parse proxy strings to array of objects
The goal of this module is to take in a string (user input, someone copy and pasting a large list of proxies) and parse it into an array of objects. I appreciate any and all feedback, but I'm ...
2votes
1answer
534views
Universal class for proxifying poplib, imaplib and smtplib. Lame inheritance or mock or something else?
This is wrapper for POP3, POP3_SSL, IMAP4, IMAP4_SSL, <...
3votes
0answers
87views
Automatic service logging
GitHub Here is a Castle.Core based service interface decorator providing automatic logging through the ambient logging context. Logging context should be ...
6votes
2answers
2kviews
A proxy class as a generic replacement for getters and setters
(There is now a 2nd version of this code) Have you ever written proxy objects, instead of using a setter and a getter method? In that case, I'm interested in your opinion on the following design for a ...
1vote
2answers
95views
Use proxy for jQuery-like DOM extensions
I have cleared all my scripting from the use of JQuery, but sometimes I miss a few handy extensions. Now I'm playing with the idea to "extend" ...
2votes
0answers
52views
Proxy server performance improvements?
fairly new to playing around with proxy servers. Wrote a really simple one with Express to help keep some API keys secret so that my front-end app can query the GitHub API. Definitely feels a bit ...
5votes
1answer
299views
Testable REST API Client
GitHub and NuGet Allows to invoke public/private REST API just by defining an interface. 200 lines of C# in total. Demo Sample API is publicly available at http://jsonplaceholder.typicode.com: <...
5votes
1answer
163views
Strictly typed dynamic proxy to call dynamic object
GitHub and NuGet I would like to use DynamicObject derived types to execute REST API/NodeJS module calls. It would also help to capture API shape in a strictly typed manner, so here comes an ...
3votes
1answer
418views
Sticking to a working proxy generated by a rotating proxy script
I've created a script in python to make proxied requests by picking working proxies from a list of proxies scraped from a free proxy site. The bot traverses few links to parse the urls of the ...
4votes
0answers
83views
JavaScript attempt at an aspect oriented logger using proxies and reflect
I've been playing around with AOP in JavaScript to create a Logger that I can attach to classes and output what is going on (mainly instantiation, calling of functions and the results from functions). ...