GitHub - TheAngryByrd/uhura
source link: https://github.com/TheAngryByrd/uhura
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
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/Linux Windows
Nuget
Stable Prerelease
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
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK