View Source Nex.Plug (Nex v0.1.0-beta.1)
Nex Plug module.
There are two ways for Nex to be run:
- As a standalone application (see Readme)
- As an enpoint embedded within another Plug or Phoenix router
forward "/nex", to: Nex.Plug
Link to this section Summary
Functions
Callback implementation for Plug.call/2
.
Callback implementation for Plug.init/1
.
Nex Plug function - handles all HTTP and websocket connections.
Link to this section Functions
Callback implementation for Plug.call/2
.
Callback implementation for Plug.init/1
.
@spec nex( Plug.Conn.t(), keyword() ) :: Plug.Conn.t()
Nex Plug function - handles all HTTP and websocket connections.
Websocket requests are handled by the the Nex.Socket
module.
HTTP requests with the content-type
header of "application/nostr+json"
responds with a NIP-11
Relay Information Document.