Skip to content

Latest commit

 

History

35 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NSGI: Native Web Server Gateway Interface

A language-agnostic gateway interface protocol over C ABI. This crate provides the #![no_std], zero-dependency Rust definitions of the NSGI protocol types and function signatures.

Types

Type Role
NsgiAddr A transport address in binary form
NsgiHeader A single HTTP header name/value pair
NsgiRequest HTTP request passed from host to application
NsgiResponse HTTP response handed from application to host
NsgiPending Cancellation registration the application writes when it defers the response
NsgiApp Type alias for the nsgi_handle entry point signature
NsgiFreeResponse Type alias for the nsgi_free_response cleanup signature
NsgiGetVar Type alias for the host variable lookup carried on NsgiRequest
NsgiReadRequestBody Type alias for the host request body read callback carried on NsgiRequest
NsgiRespond Type alias for the host response completion callback carried on NsgiRequest
NsgiReadResponseBody Type alias for the application response body read callback carried on NsgiResponse
NsgiCancel Type alias for the application cancellation callback carried on NsgiPending

License

MIT

About

Native Web Server Gateway Interface: C ABI protocol types for any FFI capable language

Resources

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages