Skip to content

Commit 1ab22eb

Browse files
committed
Version 2.2. - Added filter function pathStarts (thanks to @toburger!)
1 parent aa2fc81 commit 1ab22eb

File tree

5 files changed

+15
-7
lines changed

5 files changed

+15
-7
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,15 @@ let main argv =
3232
// use IIS related filter functions
3333
let path st = Suave.IIS.Filters.path argv st
3434
let pathScan format = Suave.IIS.Filters.pathScan argv format
35+
let pathStarts st = Suave.IIS.Filters.pathStarts argv st
3536
3637
// routes
3738
let webpart =
3839
choose [
39-
path "/test" >=> OK "Look ma! Routing on sub-app on localhost"
40+
pathStarts "/st" >=> OK "Path starts with '/st'"
41+
path "/test" >=> OK "Look ma! Routing on sub-app on localhost"
4042
path "/" >=> OK "Hello from Suave on IIS"
43+
4144
]
4245
4346
// start service server
@@ -104,5 +107,5 @@ If you need to run Suave application as Site (on default port 80 or any other po
104107
## Good to know
105108

106109
1. Maybe you didn\`t notice, but using this library, you can still run Suave locally (from Visual Studio hitting F5 or FAKE script) - it there are no command line arguments, default setup is used, so you don\`t need to change anything. Just use `withPort` and create custom filter functions based on `Suave.IIS.Configuration`.
107-
2. Only few (two, actually :)) filter functions are wrapped in `Suave.IIS.Filters`. If you need more of them, please feel free to send PR.
110+
2. Only few (three, actually :)) filter functions are wrapped in `Suave.IIS.Filters`. If you need more of them, please feel free to send PR.
108111

RELEASE_NOTES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#### 2.2.0 - June 13 2017
2+
* Added filter function pathStarts (thanks to @toburger!)
3+
14
#### 2.1.0 - February 15 2017
25
* Added support for running Suave as IIS Site
36
* Configuration Setup path is now optional

src/Suave.IIS/AssemblyInfo.fs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ open System.Reflection
55
[<assembly: AssemblyTitleAttribute("Suave.IIS")>]
66
[<assembly: AssemblyProductAttribute("Suave.IIS")>]
77
[<assembly: AssemblyDescriptionAttribute("Set of helper functions for smooth running Suave web server on Internet Information Services (IIS)")>]
8-
[<assembly: AssemblyVersionAttribute("2.1.0")>]
9-
[<assembly: AssemblyFileVersionAttribute("2.1.0")>]
8+
[<assembly: AssemblyVersionAttribute("2.2.0")>]
9+
[<assembly: AssemblyFileVersionAttribute("2.2.0")>]
1010
do ()
1111

1212
module internal AssemblyVersionInformation =
1313
let [<Literal>] AssemblyTitle = "Suave.IIS"
1414
let [<Literal>] AssemblyProduct = "Suave.IIS"
1515
let [<Literal>] AssemblyDescription = "Set of helper functions for smooth running Suave web server on Internet Information Services (IIS)"
16-
let [<Literal>] AssemblyVersion = "2.1.0"
17-
let [<Literal>] AssemblyFileVersion = "2.1.0"
16+
let [<Literal>] AssemblyVersion = "2.2.0"
17+
let [<Literal>] AssemblyFileVersion = "2.2.0"

tests/Suave.IIS.TestApp/Program.fs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ let main argv =
1010
// use IIS related filter functions
1111
let path st = Suave.IIS.Filters.path argv st
1212
let pathScan format = Suave.IIS.Filters.pathScan argv format
13+
let pathStarts st = Suave.IIS.Filters.pathStarts argv st
1314

1415

1516
let length = argv |> Array.length |> string
1617
let loc = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location)
1718
// routes
1819
let webpart =
1920
choose [
21+
pathStarts "/st" >=> OK "Path starts with '/st'"
2022
path "/TextFile.txt" >=> Files.browseFileHome "TextFile.txt"
2123
path "/test" >=> OK "Look ma! Routing on sub-app on localhost"
2224
path "/" >=> OK "Hello from Suave on IIS"

tests/Suave.IIS.TestApp/Web.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<aspNetCore
1313
forwardWindowsAuthToken="true"
1414
processPath="c:\Dzoukr\Personal\dzoukr\Suave.IIS\tests\Suave.IIS.TestApp\bin\Debug\Suave.IIS.TestApp.exe"
15-
arguments="%ASPNETCORE_PORT% test"
15+
arguments="%ASPNETCORE_PORT%"
1616
startupTimeLimit="20"
1717
stdoutLogEnabled="true"
1818
stdoutLogFile="myiiswebname.log"

0 commit comments

Comments
 (0)