Skip to content
Proyek

Tentang

The F# web framework designed for clarity and speed

Pengembangan web dan aplikasi

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
0
dalam 15 hari
0
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

Wiz



The F# web framework designed for clarity and speed

→ https://wiz.run

open Wiz.Server
open Wiz.Route
open Wiz.Context

let handler ctx =
  ctx |> sendText "Hello, World"

genServer()
|> setRoutes [get "/" handler]
|> run



Install

Via the .Net CLI:

dotnet add package Wiz

Example

Here is a fully functional server with 2 routes:

module Program
  open Wiz.Server
  open Wiz.Route
  open Wiz.Context

  ///////////////////////////
  // define route handlers
  ///////////////////////////
  let handleHome ctx =
    ctx
    |> sendText "Show me some magic!"

  let handleSpell ctx =
    ctx
    |> sendText "Abra Kadabra Kalamazoo!"

  ///////////////////////////
  // map routes to handlers
  ///////////////////////////
  let routes = [
    get "/" handleHome
    get "/spell" handleSpell
  ]

  [<EntryPoint>]
  let main args =
    genServer()
    |> setRoutes routes
    |> run

About Wiz

Wiz is the result of attentively designing what an F# HTTP server API should look like, and then building that API.

Wiz's goal is to make it SO easy to interface with ASP.NET that its the most developer-friendly HTTP framework in all of .NET. To earn that title, Wiz needs to be well documented, intuitive, easily configurable, and fast as hell.


Wiz Moon Logo

Jelajahi proyek terkait

Memuat…