pipey 0.1.1

A lightweight HTTP-to-WebSocket event delivery service.
Documentation
use actix_web::{HttpResponse, Responder};

/// 404 - Page Not Found
pub async fn page_not_found() -> impl Responder {
    HttpResponse::NotFound()
        .content_type("text/plain; charset=utf-8")
        .body(
            r#"
    ╭───────────────╮
    │  Pipey 🟢     │
    ╰───────────────╯

    ❌ ERROR 404

    ╭───────────────────────────────╮
    │ This endpoint isn't connected │
    │ to any pipe.                  │
    ╰───────────────────────────────╯

    HTTP ─────╮
              │
              ✖
              │
    WebSocket ─╯

    Keep calm and keep piping.
"#,
        )
}