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.
48
questions
4
votes
0
answers
115
views
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 ...
7
votes
3
answers
786
views
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:
...
5
votes
3
answers
214
views
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 ...
1
vote
0
answers
104
views
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 ...
2
votes
1
answer
249
views
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,...
1
vote
1
answer
589
views
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 ...
2
votes
1
answer
515
views
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, <...
3
votes
0
answers
86
views
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 ...
6
votes
2
answers
2k
views
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 ...
1
vote
0
answers
132
views
JavaScript Proxy: set DOM Element styles by chaining CSS setters
First time creating my own Proxy handler, instead of copy pasting code.
Goal is to chain CSS definitions: style(element).color("red").background("green")
and allow whole CSS ...
1
vote
2
answers
87
views
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" ...
2
votes
0
answers
49
views
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 ...
5
votes
1
answer
295
views
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:
<...
5
votes
1
answer
161
views
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 ...
3
votes
1
answer
408
views
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 ...