🚧 [html] Implementa Default
en Context
This commit is contained in:
parent
0496b9dc5d
commit
c6c8c66a97
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