clean_backend 0.5.6 copy "clean_backend: ^0.5.6" to clipboard
clean_backend: ^0.5.6 copied to clipboard

Dart 1 only

Basic server-side environment.

Backend server for convenient request handling #

Build Status

Motivation #

Have you ever tried to work with HttpServer ? It's just a stream of HttpRequests, all going to this single location, where you would have to handle them differently based on their URI, manage cookies, handle cases when URI is invalid...and all this on your own. This just makes your life much easier.

What is it good for ? #

Basically, it is a HttpServer, which supports adding Request handlers per path and manages cookies conveniently. This Request is a special class, which wraps the imporant parts of the whole request
together. It's just as simple as adding a new Route path associated with some name and then adding a Request handler for this route's name. Route paths support parameters, which are then accessible in the Request object in handler. Additionally, all requests - failed or not, are logged with duration of the process.

0
likes
25
points
24
downloads

Publisher

unverified uploader

Weekly Downloads

Basic server-side environment.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

BSD-2-Clause (license)

Dependencies

clean_logging, clean_router, crypto, hop_docgen, http_server, path

More

Packages that depend on clean_backend