silk/http_server_native
Profiles: aarch64-apple-darwin, aarch64-unknown-linux-gnu, x86_64-unknown-linux-gnu.
Serial native admission for one scoped HTTP server connection.
Details
serveNext accepts exactly one connection and lends the portable server actor inside the same
accepted-owner scope. Applications repeat the operation explicitly; this module creates no
background queue, router, supervisor, or detached task.
Import as HttpServerNative with import silk.http_server_native { HttpServerNative }.
Public declarations: 2.
HttpServerNative
pub struct HttpServerNativeNamespace anchor for native HTTP admission.
serveNext
pub effect<'env> fn serveNext<'listener: 'env, A, E, ?HandlerRequirements, H: 'env, 'env>(listener: &'listener mut silk/native_socket.Listener, limits: Limits, acceptDeadline: silk/option.Option<silk/system_clock.Instant>, handler: H) -> A ! E | NativeSocketError | ServerError | BufferError | OutOfMemoryError ? HandlerRequirements | &mut Allocator | &mut MonotonicClock where HandlerRequirements in Without<HandlerRequirements, &ByteDuplex>Accepts and serves exactly one connection inside the listener's accepted-owner scope.