//----------------------------------------------------------------------- // // Copyright (c) Andrew Arnott. All rights reserved. // //----------------------------------------------------------------------- namespace DotNetOAuth.OAuth.ChannelElements { using System.IO; using System.Net; using DotNetOAuth.Messaging; /// /// A contract for handling. /// internal interface IWebRequestHandler { /// /// Prepares an that contains an POST entity for sending the entity. /// /// The that should contain the entity. /// The writer the caller should write out the entity data to. TextWriter GetRequestStream(HttpWebRequest request); /// /// Processes an and converts the /// to a instance. /// /// The to handle. /// An instance of describing the response. Response GetResponse(HttpWebRequest request); } }