Struct aurelius::Handle
[−]
[src]
pub struct Handle { /* fields omitted */ }
A server that is listening for HTTP requests on a given port, and broadcasting rendered markdown over a websocket on another port.
Methods
impl Handle
[src]
fn websocket_addr(&self) -> Result<SocketAddr>
Returns the socket address that the websocket server is listening on.
fn http_addr(&self) -> Result<SocketAddr>
Returns the socket address that the HTTP server is listening on.
fn change_working_directory<P>(&mut self, dir: P) where P: AsRef<Path>
Changes the "current working directory" of the HTTP server. The HTTP server will serve static file requests out of the new directory.
fn send<S>(&self, data: S) where S: Into<String>
Publish new markdown to be rendered by the server.