Skip to content

Exira.VersionHeader.Owin is an OWIN middleware to add assembly version information to HTTP headers.

License

Notifications You must be signed in to change notification settings

exira-legacy/versionheader-owin

Repository files navigation

versionheader-owin NuGet Status

Exira.VersionHeader.Owin

Exira.VersionHeader.Owin is an OWIN middleware to add assembly version information to HTTP headers.

Usage

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

Cloning

git clone [email protected]:exira/versionheader-owin.git -c core.autocrlf=input

About

Exira.VersionHeader.Owin is an OWIN middleware to add assembly version information to HTTP headers.

Resources

License

Stars

Watchers

Forks

Packages

No packages published