Giter Site home page Giter Site logo

xamele0n / simple.owin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eddiegarmon/simple.owin

0.0 2.0 0.0 2.01 MB

A framework for OWIN servers, middleware, and applications

License: MIT License

Batchfile 0.11% PowerShell 6.94% XSLT 1.76% C# 52.03% HTML 39.17%

simple.owin's Introduction

Simple.Owin

A toolkit/framework for OWIN component and application authors.

Goals

Simple.Owin offers useful extension methods and provides a few typed constructs for OWIN server, middleware, application framework, and application authors.

Typed Constructs

  • OwinRequest : IRequest
    • An abstraction around IDictionary<string, object> environment to provide easy access to typed instances of values commonly used in request processing.
  • OwinResponse : IResponse
    • An abstraction around IDictionary<string, object> environment to provide easy access to typed instances of values commonly used in response processing.
  • OwinContext : IContext
    • The root abstraction around IDictionary<string, object> environment that provides a handle to Request and Response abstractions, as well as OWIN environment properties. This is the preferred abstraction for use in the OWIN pipeline. The instance is cached in the OWIN environment with the key "simple.Context", so it only gets created once per request. Use the static OwinContext.Get(environment) to acquire the context.
  • HTTP Headers
    • Both request and response headers provide abstractions around the IDictionary<string, string[]> headers OWIN header specification, as well as properties for commonly used headers. They are available on OwinRequest and OwinResponse.
  • HTTP Cookies
    • An abstraction around HTTP cookies.

Hosting

A simple hosting environment that more closely follows the OWIN specification on start-up sequence. **Application component start-up is not currently defined well, and is left for each OWIN Host to implement.

Testing

Provides a testing Host and Request model that follows the OWIN specification without using any network access at all. The Host supports testing applications that meet the OWN AppFunc signature:

  • Func<IDictionary<string,object>, Task>

as well as pure middleware that supports the Fix MiddlewareFunc signature:

  • Func<IDictionary<string,object>, Func<IDictionary<string,object>,Task>, Task>

simple.owin's People

Contributors

eddiegarmon avatar

Watchers

xamele0n avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.