Straight-forward way of interception method(s) before and/or after its execution.
An HTTP(s) proxy `http.Agent` implementation for HTTPS
Offers getProxyForUrl to get the proxy URL for a URL, respecting the *_PROXY (e.g. HTTP_PROXY) and NO_PROXY environment variables.
an identity object using ES6 proxies
An HTTP(s) proxy `http.Agent` implementation for HTTP
Turn a function into an `http.Agent` instance
Maps proxy protocols to `http.Agent` implementations
A simple utility to build an axios proxy request object from env's
The one-liner node.js proxy middleware for connect, express, next.js and more
Determine address of proxied request
HTTP proxying for the masses
A SOCKS proxy `http.Agent` implementation for HTTP and HTTPS
A PAC file proxy `http.Agent` implementation for HTTP
An HTTP proxy written with Node.js (think Squid)
A Backstage backend plugin that helps you set up proxy endpoints in the backend
Global HTTP/HTTPS proxy configurable using environment variables.
TypeScript definitions for http-proxy
ES5 shim for ES6 (ECMAScript 6) Reflect and Proxy objects
Microsofts' EdgeDriver for Node.js
Azure Authentication library in node.js with type definitions.
Determine the address of a proxied request
Compare two objects using accessed properties with Proxy
Fully featured SOCKS proxy client supporting SOCKSv4, SOCKSv4a, and SOCKSv5. Includes Bind and Associate functionality.
Node.js implementation of a proxy server (think Squid) with support for SSL, authentication, upstream proxy chaining, and protocol tunneling.
The purpose of this gem is to prevent directly running the inherited methods you choose to block at either the class or instance level, and instead do one of two things: run an alternative block which may or may not invoke the original method, or simply raise an error message. The error message can be customized. The original method can still be called under a different name. The entire object or class can return "unproxied" versions of themselves to preserve the original functionality. This was originally created to help enforce the use of interactors over directly calling ActiveRecord methods like create, save, and update. As with any metaprogramming, this gives you plenty of rope to hang yourself if you try to get too "clever". Treat this library like salt; use sparingly, because over time its cumulative effect will kill you :)
Provides convenient means of "taping" into instance or class method calls. The intercepting code is provided with reference to the object, reference to the original method and list of arguments.
This gem defines the Kernel method "it" that queue and defer method calls. This extends the Symbol#to_proc idiom to support chaining multiple methods. For example, items.collect(&it.to_s.capitalize). This also allows conditionals in case statements, such as: case ... when it > 3 then [etc.]. The method is also aliased as "its", for methods that describe possessives rather than actions, such as items.collect(&its.name.capitalize) [This gem is an extension of Jay Philips' "methodphitamine" gem, updated for ruby 1.9 and gemspec compatibility and adding the case statement functionality.]
Remember when RSpec had stub_chain? They removed it for good reasons but sometimes you just need it. Well, here it is, a proxy object. It doesn't actually mock anything for you (the name is just catchy) so you need to do that. But that actually comes with a lot of benefits: 1) It's compatable with any testing framework 2) You can use it for purposes other than testing, e.g. prototyping, code stubs 3) Flexibility in how you use it without overloading the number of methods you have to remember Here's an example usage: let(:model_proxy) do MockProxy.new(email_client: { create_email: { receive: proc {} } }) end before { allow(Model).to receive(:new).and_return model_proxy } it 'should call receive' do proc = MockProxy.get(model_proxy, 'email_client.create_email.receive') expect(proc).to receive(:call) run_system_under_test MockProxy.update(mock_proxy, 'email_client.create_email.validate!') { true } MockProxy.observe(mock_proxy, 'email_client.create_email.send') do |to| expect(to).to eq 'stop@emailing.me' end run_system_under_test2 end As you can see, the proc - which ends the proxy by calling the proc - can be used for anything. You can spy on the call count and arguments, mock methods, or just stub out code you don't want executed. Because it doesn't make any assumptions, it becomes very flexible. Simple, yet powerful, it's uses are infinite. Enjoy
A simple DSL and object proxy to restrict access to instances of your classes based on any conditional you provide
Add proxy methods easily
mail_room will proxy email (gmail) from IMAP to a delivery method
An object that proxies method calls to a Hash object as hash key lookups. Handles nested hashes and arrays.
Simply modify methods that take a block to also provide a proxy
mail_room will proxy email (gmail) from IMAP to a delivery method
Simply modify methods that take a block to also provide a proxy
Allows you define a proxy method to decode base64-encoded images.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.