Function deno_http::http_create_conn_resource
source ·
[−]pub fn http_create_conn_resource<S>(
state: &mut OpState,
io: S,
addr: SocketAddr,
scheme: &'static str
) -> Result<ResourceId, AnyError> where
S: AsyncRead + AsyncWrite + Unpin + Send + 'static,
Expand description
Creates a new HttpConn resource which uses io
as its transport.