Home

Awesome

uhura

This is a super simple url router for Owin/Kestrel. It's designed be super simple with use from F# for microservices. If you need something more robust I suggest Suave, Nancy or Asp.Net

Why Uhura? It was a joke started around my office about making Enterprise Ready™ software.

build

MacOS/LinuxWindows
Travis BadgeBuild status
Build HistoryBuild History

Nuget

StablePrerelease
NuGet BadgeNuGet Badge

Hello World

open Microsoft.AspNetCore.Builder
open Microsoft.AspNetCore.Hosting
open Microsoft.AspNetCore.Http
open Uhura.Web
open Uhura.Web.Routing
let helloWorldHandler groups (ctx : HttpContext) =
    ctx.Response.WriteAsync("Hello world from Uhura on Kestrel!") 

let routes =
    [
        GET "/" helloWorldHandler
    ]
[<EntryPoint>]
let main argv =
    WebHostBuilder()
        .UseUrls("http://localhost:8083")
        .UseKestrel()
        .Configure(fun appBuilder -> openHailingFrequencies appBuilder routes)
        .Build()
        .Run()

    0