Skip to content

Commit 8cb723d

Browse files
committed
Fixed #link and reordered documentation a bit
1 parent 1bf136d commit 8cb723d

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ The old NuGet package has been unlisted and will not receive any updates any mor
5555
- [xml](#xml)
5656
- [negotiate](#negotiate)
5757
- [negotiateWith](#negotiatewith)
58-
- [redirectTo](#redirectTo)
5958
- [htmlFile](#htmlfile)
6059
- [dotLiquid](#dotliquid)
6160
- [dotLiquidTemplate](#dotliquidtemplate)
6261
- [dotLiquidHtmlView](#dotliquidhtmlview)
6362
- [razorView](#razorview)
6463
- [razorHtmlView](#razorhtmlview)
6564
- [renderHtml](#renderhtml)
65+
- [redirectTo](#redirectto)
6666
- [warbler](#warbler)
6767
- [Custom HttpHandlers](#custom-httphandlers)
6868
- [Model Binding](#model-binding)
@@ -623,20 +623,6 @@ let app =
623623
]
624624
```
625625

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-
640626
### htmlFile
641627

642628
`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 =
808794
]
809795
```
810796

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+
811811
### warbler
812812

813813
If your route is not returning a static response, then you should wrap your function with a warbler.

0 commit comments

Comments
 (0)