Wrap Web Services Handlers Library
Go to file
2021-10-19 20:58:19 +01:00
app_auth_handlers chore: syntax fix 2021-09-11 19:29:40 +01:00
app_file_handlers chore: WebServer in config as vector for Multiples Webs 2021-09-07 14:58:48 +01:00
reqenv chore: fix struct definition 2021-10-19 20:58:19 +01:00
reqtasks chore: fix struct definition 2021-10-19 20:58:19 +01:00
.gitignore init repo 2021-09-01 19:28:41 +01:00
LICENSE init repo 2021-09-01 19:28:41 +01:00
README.md chore: fix how to 2021-09-01 19:37:44 +01:00

Webservices (wrap) Handlers Library

Rust Libraries Collections for webservices (warp) handlers

Part of the following developments:

Includes applications definitions and functions for following areas:

  • App auth handlers library: login, admin, member.
  • Files Upload.
  • Web Request enviroment definition and functions.
  • Authentication
  • Render templates and pages
  • Lang definitions

Criteria

In a basic application scenario this group or library collections are included together.

Updating packages or dependencies shoud be keep in sync among Cargo.toml declarations.

How to use

1 - Clone or download this lib in a path, better outside of target development

2 - Get current version from Cargo.toml

3 - For each member of of Handlers Library one line like the one below should be included in target development Cargo.toml (adjust version & path) and use whatever is need.

app_auth_handlers = { version = "0.1.0", path = "../lib/handlers/app_auth_handlers" }

To include all libraries:

app_auth_handlers = { version = "0.1.0", path = "../lib/handlers/app_auth_handlers" }
app_file_filters = { version = "0.1.0", path = "../lib/filters/app_file_filters" }
app_file_handlers = { version = "0.1.0", path = "../lib/handlers/app_file_handlers" }
reqtasks = { version = "0.1.0", path = "../lib/handlers/reqtasks" }
reqenv = { version = "0.1.0", path = "../lib/handlers/reqenv" }

Structure

Each directory contains a Library dedicated to applications common needs: Inside of each directory README.md and TODO.md files has more details.

app_auth_handlers

App auth handlers library

Handlers for request for auth management using warp

app_auth_handlers
├── Cargo.toml
├── README.md
├── TODO.md
└── src
    └── lib.rs

app_file_handlers

Files uploads.

app_file_handlers/
├── Cargo.toml
├── README.md
├── TODO.md
└── src
    └── lib.rs

reqenv

Web Request enviroment definition and functions

reqenv
├── Cargo.toml
├── README.md
├── TODO.md
└── src
    └── lib.rs

reqtasks

Handlers for:

  • Authentication
  • Access: admin, session token.
  • Render tamplates and pages
  • Lang definitions
reqtasks
├── Cargo.toml
├── README.md
├── TODO.md
└── src
    └── lib.rs

Author

License

MIT