Git Product home page Git Product logo

web-server's People

Contributors

bwhite000 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

web-server's Issues

Virtual File Directory Does not use caching

It would be an awesome feature to have caching for images, fonts, css and js that are in the virtual file directory, so we don't need to waste alot of bandwidth serving the same content everytime. Maybe comparing the time stamps of the files would serve as a good method for caching?

Failed to precompile web_server:bin\web_server

Dart 2.0.0-dev.67.0

file:///C:/Users/Rob/AppData/Roaming/Pub/Cache/global_packages/web_server/bin/web_server.dart.snapshot:1: Error: The system cannot find the file specified.

Failed to precompile web_server:bin\web_server:
file:///C:/Users/Rob/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/web_server-2.0.0+3/lib/src/web_server/http_server_request_handler.dart:323:46: Error: A value of type '(dart._http::HttpRequest) → dart.async::Future<dart.core::Null>' can't be assigned to a variable of type '(dynamic) → void'.
Try changing the type of the left hand side, or casting the right hand side to '(dynamic) → void'.
      this._functionStore[urlData.id].listen((final HttpRequest httpRequest) async {
                                             ^
file:///C:/Users/Rob/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/web_server-2.0.0+3/lib/src/web_server/web_socket_server_request_handler.dart:44:15: Error: A value of type '(dart.core::Map<dart.core::String, dynamic>) → dart.core::Null' can't be assigned to a variable of type '(dynamic) → void'.
Try changing the type of the left hand side, or casting the right hand side to '(dynamic) → void'.
    }).listen((final Map<String, dynamic> json) {
              ^
file:///C:/Users/Rob/AppData/Roaming/Pub/Cache/git/cache-c4b719ed8c6a02b17b35624997585231f53bbd54/lib/cache.dart:248:16: Error: A value of type '(dart.core::Map<dart.core::String, dynamic>) → dart.async::Future<dart.core::Null>' can't be assigned to a variable of type '(dynamic) → void'.
Try changing the type of the left hand side, or casting the right hand side to '(dynamic) → void'.
      ..listen((final Map<String, dynamic> messageFromMainThread) async {

serveStaticFile not Caching

On line 328, in the function serveStaticFile (http_server_request_handle file), when caching is enabled, it will still read from File IO instead of serving from memory.

Upgrade InternetAddress.LOOPBACK_IP_V4 to InternetAddress.ANY_IP_V4

I think for the demo and in the package itself, we should change InternetAddress.LOOPBACK_IP_V4 to use any IP so people just starting out with the package don't get frustrated when putting this code on a production server to find out that they are not able to access the server from outside of said server. Changing it to any will provide this support to access said server.

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.