Glutinum.Express
0.4.0
dotnet add package Glutinum.Express --version 0.4.0
NuGet\Install-Package Glutinum.Express -Version 0.4.0
<PackageReference Include="Glutinum.Express" Version="0.4.0" />
<PackageVersion Include="Glutinum.Express" Version="0.4.0" />
<PackageReference Include="Glutinum.Express" />
paket add Glutinum.Express --version 0.4.0
#r "nuget: Glutinum.Express, 0.4.0"
#:package Glutinum.Express@0.4.0
#addin nuget:?package=Glutinum.Express&version=0.4.0
#tool nuget:?package=Glutinum.Express&version=0.4.0
Glutinum.Express
Fable bindings for express, generated by Glutinum
Generated by Glutinum from @types/express.
The bindings live in the Glutinum.Express module. Express.Exports.express () creates the application, Exports.json, Exports.urlencoded and Exports.Router are the values of the express namespace, and its types are Express.Request, Express.Response and Express.RequestHandler.
open Glutinum
open Glutinum.Express
let app = Exports.express ()
// The JSON body parser, a middleware of connect
app.``use`` (ExpressAdapter.Middleware(Exports.json None)) |> ignore
// A handler takes the request and the response, `ExpressAdapter.RequestHandler` also accepts `next`
app.get ("/users/:id", ExpressAdapter.RequestHandler(fun request response ->
let id = unbox<string> request.``params``.["id"]
response.json {| id = id; name = "Ada" |} |> ignore))
|> ignore
app.post ("/users", ExpressAdapter.RequestHandler(fun request response ->
response.status(201).json {| name = request.body?name |} |> ignore))
|> ignore
app.listen 3000 |> ignore
ExpressAdapter is hand-written in Glutinum.Express.Extensions.fs, shipped with the package. The route methods (get, post, all, use...) return the application, so a call ends with |> ignore. The tests/App.fs file of this folder is a complete example.
Install the npm package next to the NuGet package, or run femto to do it.
The file Glutinum.Express.fs is generated by ./build.sh generate Express in the hub, do not edit it.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- EasyBuild.PackageReleaseNotes.Tasks (>= 2.1.0)
- Fable.Core (>= 5.4.0)
- Fable.Package.SDK (>= 1.4.1)
- FSharp.Core (>= 10.1.301)
- Glutinum.Node (>= 1.0.0-beta.11)
- Glutinum.Types (>= 1.0.0-beta.10)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.4.0 | 82 | 10/13/2026 |
| 0.3.0 | 126 | 9/20/2026 |
| 0.2.0 | 950 | 8/14/2024 |
| 0.1.0-alpha-002 | 1,439 | 3/17/2021 |
| 0.1.0-alpha-001 | 459 | 3/17/2021 |
### 🚀 Features
* Regenerate the bindings with Glutinum 1.0.0-beta.6 (#3) ([28c48f1](https://github.com/glutinum-org/hub/commit/28c48f194a85c482b69cdceb6e9bbe197799c7dd))
* Regenerate the bindings with Glutinum 1.0.0-beta.13 ([a4cda3c](https://github.com/glutinum-org/hub/commit/a4cda3c2eed74a7c55dc9bfc386404ac4228f766))
### 🐞 Bug Fixes
* Regenerate the bindings with the latest converter ([c4b0b45](https://github.com/glutinum-org/hub/commit/c4b0b457bce356e8812b71f8fdddcc4df17872fa))
* Release the bindings with extensions as library packages ([ce44527](https://github.com/glutinum-org/hub/commit/ce44527c901e0e81e2b7a923db71bb274acc0f85))
<strong><small>[View changes on Github](https://github.com/glutinum-org/hub/compare/bb6b34e6234cadb862a9350c69a30ef2212dc7d9..b89d90c892821e91c9b661c64812d87788e00681)</small></strong>