Git Product home page Git Product logo

shelf_test's Introduction

shelf_test

shelf_test is a set of Dart 2 compliant sample servers for development of server applications utilizing shelf web server middleware pub package.

This repository consists of following server codes.

  • handler_sample_1.dart : Very simple sample echo server handler. Access this server like: http://localhost:8080/test

  • handler_sample_2.dart : Simple sample handler that dumps out incoming request for proper analysis. This server has prompt page and favicon image handling capability. Access this server from Chrome using : http://localhost:8080/

  • bin/middleware_sample_1.dart : Sample middleware code showing how to hand modified request to the innerHandler. Access this server from Chrome using : http://localhost:8080/test

  • bin/middleware_sample_2.dart : Sample middleware code that returns response directly. Opening with 'http://localhost:8080/middleware' will cause direct return.

  • bin/middleware_sample_3.dart : Sample middleware code showing how to modify the response from the innerHandler. Call this server like 'http://localhost:8080/123'.

このサンプルは「解説Dart 2プログラミング言語」の 添付資料です。詳細は「ミドルウエア・フレームワーク (shelf)」の章をご覧ください。

These samples are attachments to the Dart 2 Language Guide written in Japanese.

Installing

  1. Download this repository, uncompress and rename the folder to shelf_test.
  2. From IDE, File > Open Folder and select this shelf_test folder.

Try it

  1. Run one of above servers.
  2. Access the server from your browser following to instructions.
  3. Tested on Windows.

License

These samples are licensed under MIT License.

shelf_test's People

Contributors

mitsuoka avatar

Watchers

 avatar  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.