Created
          December 8, 2010 21:22 
        
      - 
      
- 
        Save tt/733934 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | public interface IApplication | |
| { | |
| IResponse Respond(IRequest request); | |
| } | |
| public interface IRequest | |
| { | |
| string Method { get; } | |
| string Uri { get; } | |
| IDictionary<string, IEnumerable<string>> Headers { get; } | |
| IDictionary<string, object> Items { get; } | |
| IEnumerable<byte[]> Body(); | |
| } | |
| public interface IResponse | |
| { | |
| int Status { get; } | |
| IDictionary<string, IEnumerable<string>> Headers { get; } | |
| IEnumerable<object> GetBody(); | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment