mirror of
https://github.com/zigzap/zap.git
synced 2025-10-20 23:24:09 +00:00
doc update
This commit is contained in:
parent
f77f405320
commit
7503f090ee
1 changed files with 5 additions and 2 deletions
|
@ -1,6 +1,9 @@
|
|||
//! Endpoint and supporting types.
|
||||
//! Create one and define all callbacks. Then, pass it to a HttpListener's
|
||||
//! `register()` function to register with the listener.
|
||||
//!
|
||||
//! An Endpoint can be any zig struct that defines all the callbacks lilsted
|
||||
//! below.
|
||||
//! Pass an instance of an Endpoint struct to zap.Endpoint.Listener.register()
|
||||
//! function to register with the listener.
|
||||
//!
|
||||
//! **NOTE**: Endpoints must implement the following "interface":
|
||||
//!
|
||||
|
|
Loading…
Add table
Reference in a new issue