프로젝트
소개
The F# web framework designed for clarity and speed
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original
The F# web framework designed for clarity and speed
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.
![]()
관련 프로젝트 살펴보기
불러오는 중…