Exira.VersionHeader.Owin is an OWIN middleware to add assembly version information to HTTP headers.
Use the UseVersionHeader
extension method with a VersionHeaderOptions
.
Pass in the System.Type
of the assembly you wish the version information to be included in the HTTP header.
Using this from F# can be done as follows:
let registerVersionHeader (app: IAppBuilder) =
let config =
VersionHeaderOptions(
versionType = typedefof<Startup>,
HeaderName = "Release")
app.UseVersionHeader(config) |> ignore
git clone [email protected]:exira/versionheader-owin.git -c core.autocrlf=input