Coder Social home page Coder Social logo

maximkir / reversehttp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tonyg/reversehttp

0.0 2.0 0.0 477 KB

A dynamic, ReST-style means of enrolment and participation in an HTTP network; a dynamically-configurable "Remote CGI" service. Joining the World Wide Web as an HTTP server has been an ad-hoc, manual process. By using the protocol defined here, programs can provide services to the Web just as easily as they request services from the Web.

Home Page: http://www.reversehttp.net/

Makefile 1.71% Java 29.13% Python 9.28% Perl 9.89% HTML 4.38% JavaScript 15.62% CSS 2.02% Erlang 27.82% Shell 0.14%

reversehttp's Introduction

Making the web symmetric

ReverseHttp is an implementation of the specifications hosted at http://reversehttp.net:

  • ReverseHttp: a dynamic, ReST-style means of enrolment and participation in an HTTP network. The message/http and application/http MIME types defined by RFC 2616 are used to build a dynamically-configurable "Remote CGI" service.

  • RelayHttp: a protocol for tunnelling HTTP traffic over HTTP, with the goal of providing portable, general, securable access to the World Wide Web for programs running in restricted environments, including Javascript programs running in browsers.

Joining the World Wide Web as an HTTP server has been an ad-hoc, manual process. By using the ReverseHttp protocol, programs can provide services to the Web just as easily as they request services from the Web.

Code overview

  • src/ holds the server implementation, written in Erlang using Mochiweb.

  • priv/www/ holds the Javascript client implementation and demos.

  • priv/java/ holds the Java client implementation.

  • priv/python/ holds the Python client implementation.

Building and running ReverseHttp

You will need Erlang installed. Run make. If this succeeds, run ./start-dev.sh.

By default, the server will now be running on port 8000, serving content from priv/www. Try http://localhost:8000/: you should see an index of demos.

To change the port number, edit reversehttp.app. The version in src/ is the master copy, but the version in ebin/ is the one that's used to actually run the software.

Software License

ReverseHttp is open-source code, licensed under the very liberal MIT license:

Copyright (c) 2008, 2009, 2010 Tony Garnock-Jones <[email protected]>
Copyright (c) 2008, 2009 LShift Ltd. <[email protected]>

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

reversehttp's People

Contributors

tonyg avatar

Watchers

James Cloos avatar Maxim Kirilov avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.