![]() Built-in debuggers got wayyy more powerful. Over time, however, I've used it less frequently, for a few reasons: This enabled me to act quickly when hard-to-debug production issues arose, which translated into a competitive advantage for both myself and my company. I could just edit a file on my local disk and reload my browser. The most common-although by no means only-use case for me was swapping in my own JavaScript onto web pages, in order to do rapid debugging without actually pushing console.logs to a staging server or (god forbid!) production. I began writing code for this in 2010 while I worked at Cisco-and later at various startups-to solve my own needs for advanced testing and debugging production websites. 1.0.0 Initial release of Hoxy 1.0 rewrite.1.0.1 Fixed bug with URL pattern matching, added filtering tests.1.0.2 Added tee() method to requests and responses, and accompanying tests.1.0.3 Fixed issue #21 causing breakage on windows, due to use of unix domain sockets.1.0.4 npm distribution no longer contains test directory.1.0.5 Fixed static conditional get fail, flexible contentType matching, ability to set fullUrl.1.1.0 Added CLI functionality to scaffold new proxy projects.1.1.1 Added SSL support for requests (protocol: https).1.1.2 Burned a version number because I suck at npm.1.1.3 Don't munge content-length headers unless necessary.1.1.4 Default protocol to 'http' if not found.1.1.5 Default protocol to 'https:' if not found because I'm a genius.(minor version bump since minor alteration to existing behavior) 1.2.0 Send content-length whenever reasonably possible.1.2.1 Make listen() accept same args as native server.listen() instead of just port.1.2.2 Fixed errors and test failures occurring on io.js.Proxy close() method now passes args through to server close. 1.2.3 Test command now npm test instead of mocha.1.2.4 Improved cheerio markup serialization.Thanks and others for helping with the HTTPS stuff! Thanks 2.0.0 Direct HTTPS proxying and improved async support in interceptors. 2.1.0 Ability to run reversy proxy as an HTTPS server.2.1.1 Ditched babel require hook and instead use compile/prepublish.2.2.3 Fixed broken reference to lodash-node in CLI.Thanks 2.2.4 Added babel optional runtime transformer. 2.3.0 Added getter and setter for proxy-level slow options.2.3.1 Back-ported 3.0.1 async as intercept fix.3.0.0 Simplify the API and better support ES6. ![]() 3.0.1 Fixed bug where as intercepts weren't catching async errors properly.3.0.2 Fix for a Windows EADDRNOTAVAIL error.3.0.3 Fixed Cycle#serve() breakage on Windows.3.1.0 Filtering options now accept functions.3.1.1 Prevent EADDRNOTAVAIL on Windows when using certAuthority.3.2.1 Fixed test failures regarding content-length and transfer-encoding headers.3.3.1 Add additional error handling to prevent crashes.Undocumented hoxy.forever() function goes away.If there's a need, it can be brought back as a separate npm module. The reasoning is that, by simplifying the project, I can more easily maintain it. The CLI has been completely removed from the project.This was based on a suggestion from with a view toward supporting arrow functions, in which this is lexical. The third argument to interceptors is now the cycle object, = to this.Rather, it solely depends on the return type of the interceptor (i.e. Interceptor arity is, accordingly, no longer a switch for async behavior. A done callback is no longer passed as the third arg to interceptors.This release simplifies the API and better supports ES6. all page titles will now say "Unicorns!" expose the response body as a cheerio object // (cheerio is a jQuery clone) as: '$' only intercept html pages mimeType: 'text/html', intercept during the response phase phase: 'response', Var proxy = hoxy.createServer().listen( 8080) Hoxy is an HTTP traffic-sniffing and manipulation tool for JavaScript programmers. Joxy is a fork of greim/hoxy to allow faster iterations in james
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |