Skip to content

Instantly share code, notes, and snippets.

@tt
Created December 8, 2010 21:22
Show Gist options
  • Save tt/733934 to your computer and use it in GitHub Desktop.
Save tt/733934 to your computer and use it in GitHub Desktop.
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