🚧 (html): Implementa Default en Context

This commit is contained in:
Manuel Cillero 2025-08-24 10:09:22 +02:00
parent 21ccba5c1e
commit 132cce8963

View file

@ -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.
///