Giter Club home page Giter Club logo

httpserver's Introduction

About

An alternative to the built-in RingoJS httpserver module.

Usage

Have a look at the examples provided.

License

This package is licensed under the Apache License Version 2.0. You can copy, modify and distribute the package in source and/or binary form. Please mark all modifications clearly as being the work of the modifier.

httpserver's People

Contributors

grob avatar botic avatar

Stargazers

 avatar Simon Oberhammer avatar  avatar

Watchers

Simon Oberhammer avatar  avatar  avatar James Cloos avatar

Forkers

orfon botic

httpserver's Issues

Module reloading not working

I updated the code of a module, but there has been no reloading of the module. The response was still the same as before I changed it.

Max age and setMaxInactiveInterval in cookie config missing

There is no way to set the max age of a session cookie with setMaxAge(int maxAge). I think this is related with setMaxInactiveInterval(), but not the same. One sets the cookie lifetime, the other the refresh time / invalidation timeout for a session itself. Both options cannot be configured with the current httpserver afais.

Provide via packages.ringojs.org

At the moment a lot of my projects are depending on your httpserver module. Can you put it on rp for easier dependency management?

Adding a second application for serving fails

I tried to serve two applications for different vhosts:

   server = httpServer.build(module.resolve("../config/jetty.xml"))
      // serve applications
      .serveApplication("/", module.resolve("./app1/routes"), {
         "virtualHosts": "foo.example.com"
      })
      .serveApplication("/", module.resolve("./app2/routes"), {
         "virtualHosts": "bar.example.com"
      })
      .start();

The first module gets served as expected, accessing the second one throw the following error message:
Current thread worker differs from scope worker

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.