Ogeon / rustful

[OUTDATED] A light HTTP framework for Rust
https://docs.rs/rustful
Apache License 2.0
862 stars 51 forks source link

Extend the Global structure with AnyMap #31

Closed Ogeon closed 9 years ago

Ogeon commented 9 years ago

This is a continuation of #25. Global can currently only hold one value, but it should be possible to store multiple values. Global should therefore have the ability to "upgrade" its content to an AnyMap if necessary.

This includes adding a set<T>(&mut self, data: T) method that should perform one of the following actions, depending on the state of the Global: