You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,14 +55,14 @@ The old NuGet package has been unlisted and will not receive any updates any mor
55
55
-[xml](#xml)
56
56
-[negotiate](#negotiate)
57
57
-[negotiateWith](#negotiatewith)
58
-
-[redirectTo](#redirectTo)
59
58
-[htmlFile](#htmlfile)
60
59
-[dotLiquid](#dotliquid)
61
60
-[dotLiquidTemplate](#dotliquidtemplate)
62
61
-[dotLiquidHtmlView](#dotliquidhtmlview)
63
62
-[razorView](#razorview)
64
63
-[razorHtmlView](#razorhtmlview)
65
64
-[renderHtml](#renderhtml)
65
+
-[redirectTo](#redirectto)
66
66
-[warbler](#warbler)
67
67
-[Custom HttpHandlers](#custom-httphandlers)
68
68
-[Model Binding](#model-binding)
@@ -623,20 +623,6 @@ let app =
623
623
]
624
624
```
625
625
626
-
### redirectTo
627
-
628
-
`redirectTo` uses a 302 response code to redirect the client to the specified path.
629
-
630
-
#### Example:
631
-
632
-
```fsharp
633
-
let app =
634
-
choose [
635
-
route "/" >=> redirectTo "/foo"
636
-
route "/foo" >=> text "Some string"
637
-
]
638
-
```
639
-
640
626
### htmlFile
641
627
642
628
`htmlFile` sets or modifies the body of the `HttpResponse` with the contents of a physical html file. This http handler triggers a response to the client and other http handlers will not be able to modify the HTTP headers afterwards any more.
@@ -808,6 +794,20 @@ let app =
808
794
]
809
795
```
810
796
797
+
### redirectTo
798
+
799
+
`redirectTo` uses a 302 response code to redirect the client to the specified path.
800
+
801
+
#### Example:
802
+
803
+
```fsharp
804
+
let app =
805
+
choose [
806
+
route "/" >=> redirectTo "/foo"
807
+
route "/foo" >=> text "Some string"
808
+
]
809
+
```
810
+
811
811
### warbler
812
812
813
813
If your route is not returning a static response, then you should wrap your function with a warbler.
0 commit comments