Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
beginor committed May 30, 2015
1 parent e82ba5f commit ee94971
Showing 1 changed file with 1 addition and 28 deletions.
29 changes: 1 addition & 28 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1 @@
# Beginor.Owin.StaticFile

**Features:**

- Simple static file middleware for owin, just has reference to Owin.dll, no reference to Microsoft.Owin.*;
- Can handle most common static file types;
- ETag header support (optional), use file's last modified time as etag value;
- ETag custom provider support;

**Usage:**

Usage of this middleware is very simple:

```c#
// Use this static file middleware first is recomented
app.UseStaticFile(new StaticFileMiddlewareOptions {
RootDirectory = @"C:\inetpub\wwwroot",
DefaultFile = "iisstart.htm",
EnableETag = true,
// when EnableETag is true, default ETag provider is LastWriteTimeETagProvider
// you can write your owin provider
// ETagProvider = new LastWriteTimeETagProvider();
MimeTypeProvider = new MimeTypeProvider()
});

// Add other middleware/framework here, WebAPI/Nancy etc.
app.UseWebApi(...);
```
Project move to [Beginor.Owin](https://github.com/beginor/beginor.owin)

0 comments on commit ee94971

Please sign in to comment.