🚧 (html): Implementa Default en Context
This commit is contained in:
parent
c63c4e8289
commit
c8e232d389
1 changed files with 6 additions and 0 deletions
|
|
@ -117,6 +117,12 @@ pub struct Context {
|
|||
id_counter : usize, // Contador para generar identificadores únicos.
|
||||
}
|
||||
|
||||
impl Default for Context {
|
||||
fn default() -> Self {
|
||||
Context::new(None)
|
||||
}
|
||||
}
|
||||
|
||||
impl Context {
|
||||
/// Crea un nuevo contexto asociado a una solicitud HTTP.
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue