Execute a listener when a response is about to write headers
An HTTP(s) proxy `http.Agent` implementation for HTTP
HTTP server mocking and expectations library for Node.js
This package provides utilities for managing HTTP headers with case-insensitive handling and validation.
A PAC file proxy `http.Agent` implementation for HTTP
A response-like object for mocking a Node.js HTTP response stream
Parse http headers, works with browserify/xhr
This package provides utilities for wrapping files with metadata for HTTP requests.
A streaming parser for HTML form data for node.js
A light-weight module that brings Fetch API to node.js
A toolkit for working with HTTP headers in JavaScript
Node.js CORS middleware
HTTP Accept-* headers parsing
A native "Headers" class polyfill.
HTTP Content-* headers parsing
Create and parse Content-Disposition header
Parses Cache-Control and other headers. Helps building correct HTTP caches and proxies
TypeScript definitions for responselike
Cypress's fork of a simplified HTTP request client.
Implementation of Structured Field Values for HTTP (RFC9651, RFC8941)
tar-stream is a streaming tar parser and generator and nothing else. It operates purely using streams which means you can easily extract/parse tarballs without ever hitting the file system.
Implementation of window.fetch which can use http2 seamlessly
Parses set-cookie headers into objects
Node-API headers
A Rack middleware for automatically removing file extensions from URIs, and update the Accept HTTP Header accordingly.
A wrapper for ruby net/http, supports http/https, RESTful methods, headers, certificate and file uploads
Butler is a Rack Middleware that serves static assets for your Rails app. It allows you to set HTTP headers for individual files or folders based on rules.
A tool to generate C++ header and source file with templates for parsing and writing JSON from expected input description in YAML. Source: https://github.com/ismo-karkkainen/specificjson Licensed under Universal Permissive License, see LICENSE.txt.
Ruby Gem for parsing C++ header files. This library is based on Nokogiri (http://nokogiri.org) and takes as input the xml files generated by Doxygen (www.doxygen.org). Parsing with Doxygen allows us to parse even a set of non-compilable include files. This is very useful in case you need to extract metadata for a big library which won't normally compile because of being incomplete or needing further build configuration (think of Makefiles, Visual Studio and similar). By using other tools which rely on a real C/C++ processor like gccxml or swig, you would normally get lots of compilation-related errors (which is undesired because we don't want to compile anything!). Doxyparser is, in such cases, the lean alternative.
# Rack HTTP Pipe Use to pipe directly a remote HTTP file without buffering it. > /!\ Do not work with WebBrick, tested with puma ## Use case * Given a file named #HASH#.pdf on S3 * You want a clean URL and handling the authentication in front of it ``` GET http:/example.com/download Content-Disposition: attachment;filename=name-fetched-from-db.pdf Content-Length Content-Type etc. ``` ## Usage ```ruby get "/" do http_pipe "http://example.com/iso-ubuntu-1404-64bits", { status: 200, headers: { "Content-Type: application/octet-stream", "Content-Disposition: attachment;filename=ubuntu.iso", } } end ``` See the example directory for an example app using sinatra
Library and CLI-Tool for automatic generation wrappers for C/C++ code using SWIG. This is both a Ruby Gem and a CLI Tool. Feed it with a directory containing the library's header files (the ones you want to wrap) and a CSV File with basic configuration (see usage). EasySwig will generate the corresponding SWIG interface files (.i) in an output directory. EasySwig also offers a facade allowing you to directly call SWIG in order to generate wrappers in the target language. EasySwig relies on the Doxyparser gem (https://github.com/davfuenmayor/ruby-doxygen-parser) which on his part depends on Nokogiri (http://nokogiri.org) and Doxygen (www.doxygen.org). Refer to Doxyparser for more information. For using EasySwig you may also want to install SWIG (http://www.swig.org/). SWIG versions 2.x and 3.x are supported. EasySwig supports currently only C#. There is ongoing work on other languages support.
Your website should use far-future expires headers on static assets, to make the best use of client-side caching. But when a file is cached, updates won't get picked up. Cache busting is the practice of making the filename of a cached asset unique to its content, so it can be cached without having to worry about future changes. This gem adds a filter and some helper methods to Nanoc, the static site generator, to simplify the process of making asset filenames unique. It helps you output fingerprinted filenames, and refer to them from your source files. It works on images, javascripts and stylesheets. It is extracted from the nanoc-template project at http://github.com/avdgaag/nanoc-template.
Welcome to Banco ! Banco has been developed to summarize statements downloaded from your bank. Install as a Rubygem, navigate to the directory your .csv files are in and execute from the command line with 'banco'. Banco will only accept comma seperated value files (.csv) and will produce a summary for the period uploaded from the file. Remove the header line from your downloaded bank statement, ensure the columns are ordered date, description, type of charge, money in an money out from left to right, any columns right of the fifth will be ignored. Banco will total the incoming & outgoing transactions for the period. Reporting the bottom line aswell as summing up the values for similar transactions. This is achieved by matching the description name, currently set at the first 9 characters of the string, (:total_outgoing :total_incoming - class Reporter), you can change this to be more or less exact. Hope your numbers are positive ! https://github.com/s33dco/banco https://rubygems.org/gems/banco
+Yobi+ is a terminal tool to make +HTTP+ requests and display responses in a friendly way inspired by HTTPie. It allows you to easily send HTTP requests and view the responses in a human-readable format, making it easier to debug and test APIs from the command line. === The main features of Yobi include: * Support for various HTTP methods <i>(GET, POST, PUT, DELETE, etc.)</i> * Customizable request +headers+ and +body+ * Pretty-printed responses with <i>syntax highlighting</i> * <i>Download mode</i> saves response content to a file * <i>Low dependency</i> and <i>easy installation</i> via RubyGems
# DECC 2050 CALCULATOR TOOL A C version and ruby wrapper for the www.decc.gov.uk 2050 energy and climate change excel calculator Further detail on the project: http://www.decc.gov.uk/2050 Canonical source: http://github.com/decc/decc_2050_model ## DEPENDENCIES 1. ruby 1.9.2 (including development headers) 2. basic c development headers This has ONLY been tested on OSX and on Ubuntu 64 bit EC2 ami. Grateful for reports from other platforms. In the util folder there is an example script that creates a new EC2 EMI, installs all the dependencies and then compiles the gem. It may be useful if you are trying to figure out the complete set of dependencies. ## INSTALLATION Note that this compiles the underlying c code, which might take 10-20 minutes or so gem install decc_2050_model ## UPDATING TO NEWER VERSIONS OF EXCEL MODEL First of all, you need to be working on the github version of the code, not the rubygem: git clone http://github.com/decc/decc_2050_model Then put the new spreadsheet in spreadsheet/model.xlsx Then, from the top directory of the gem: bundle bundle exec rake The next step is to check whether Rakefile, lib/model/_model_result.rb and lib/model/model_structure.rb need to be altered so that they pick up the correct places in the underlying excel. The final stage is to build and install the new gem: gem build model.gemspec gem install decc_2050_model-<version>.gem ... where <version> is the version number of the gem file that was created in the folder. Now follow the instructions in the twenty-fifty server directory in order to ensure that it is using this new version of the gem.
Synfeld is a web application framework that does practically nothing. Synfeld is little more than a small wrapper for Rack::Mount (see http://github.com/josh/rack-mount). If you want a web framework that is mostly just going to serve up json blobs, and occasionally serve up some simple content (eg. help files) and media, Synfeld makes that easy. The sample app below shows pretty much everything there is to know about synfeld, in particular: * How to define routes. * Simple rendering of erb, haml, html, json, and static files. * In the case of erb and haml, passing variables into the template is demonstrated. * A dynamic action where the status code, headers, and body are created 'manually' (/my/special/route below) * A simple way of creating format sensitive routes (/alphabet.html vs. /alphabet.json) * The erb demo link also demos the rendering of a partial (not visible in the code below, you have to look at the template file examples/public/erb_files/erb_test.erb).
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.