Skip to main content

Crate dart_edge_http_server_core

Crate dart_edge_http_server_core 

Source
Expand description

Shared native HTTP handler ABI types for Dart Edge native crates.

Structs§

NativeBytes
Borrowed byte view passed across the Dart FFI boundary.
NativeHttpError
Shared serializable error shape for native HTTP helper APIs.
NativeHttpRequest
Native HTTP request passed to a native route handler.
NativeHttpResponse
Native HTTP response returned by a native route handler.
NativeHttpRoute
Native HTTP route descriptor serialized into Dart route manifests.
NativeHttpRouteManifest
Manifest wrapper for native HTTP route descriptors.
NativePair
Borrowed UTF-8 key/value pair represented as byte views.

Enums§

NativeHttpMethod
Native HTTP method code shared across Dart Edge native crates.

Constants§

NATIVE_HTTP_METHOD_DELETE
Native ABI method code for DELETE.
NATIVE_HTTP_METHOD_GET
Native ABI method code for GET.
NATIVE_HTTP_METHOD_HEAD
Native ABI method code for HEAD.
NATIVE_HTTP_METHOD_OPTIONS
Native ABI method code for OPTIONS.
NATIVE_HTTP_METHOD_PATCH
Native ABI method code for PATCH.
NATIVE_HTTP_METHOD_POST
Native ABI method code for POST.
NATIVE_HTTP_METHOD_PUT
Native ABI method code for PUT.

Functions§

native_http_routes_from_json
Decodes a native HTTP route list from JSON.
native_http_routes_to_json
Encodes a native HTTP route list as JSON.

Type Aliases§

NativeHttpFreeResponse
Function pointer used to release a response returned by NativeHttpHandler.
NativeHttpHandler
Native HTTP route handler function pointer.
NativeHttpResult
Shared result alias for native HTTP helper APIs.