🚧 [html] Implementa Default en Context

This commit is contained in:
Manuel Cillero 2025-08-24 10:09:22 +02:00
parent 0496b9dc5d
commit c6c8c66a97

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