diff options
Diffstat (limited to 'ext/http/http_next.rs')
-rw-r--r-- | ext/http/http_next.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/http/http_next.rs b/ext/http/http_next.rs index 019054894..e95839005 100644 --- a/ext/http/http_next.rs +++ b/ext/http/http_next.rs @@ -1078,6 +1078,11 @@ impl Resource for UpgradeStream { } } +#[op(fast)] +pub fn op_can_write_vectored(state: &mut OpState, rid: ResourceId) -> bool { + state.resource_table.get::<UpgradeStream>(rid).is_ok() +} + #[op] pub async fn op_raw_write_vectored( state: Rc<RefCell<OpState>>, |