Skip to content

Instantly share code, notes, and snippets.

@panesofglass
Forked from bvanderveen/OwinDraft2.cs
Created December 28, 2010 04:50
Show Gist options
  • Save panesofglass/756907 to your computer and use it in GitHub Desktop.
Save panesofglass/756907 to your computer and use it in GitHub Desktop.
An alternate definition of the OWIN specification based on RFC3875
namespace Owin
open System
open System.Collections.Generic
open System.Threading.Tasks
type Request = IDictionary<string, obj>
type Response = string * IDictionary<string, seq<string>> * seq<obj>
type Application = Func<Request, Task<Response>>
@panesofglass
Copy link
Author

The types declared here are just aliases. The actual type definition in C# would be:

Func<IDictionary<string, object>, Task<Tuple<string, IDictionary<string, IEnumerable<string>>, IEnumerable<object>>>>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment