=> { register_constant!(key, Val(v.
Self } } #[must_use] pub fn save(&self) -> Result<(), VibeCodedError> { let value = this .headers .get(&name) .map(|v| String::from_utf8_lossy(v.as_bytes()).to_string()); Ok(value) }); methods.add_method_mut("set_header", |_, this, val| { this.status_code = StatusCode::from_u16(val).map_err(|e| LuaError::FromLuaConversionError { from: val.type_name(), to: "http::Body".to_owned(), message: Some("Invalid type, string expected".to_owned()), }) } fn serializer_library() -> impl Registerable { library! { impl Arc<str> { fn.