//-----------------------------------------------------------------------
//
// Copyright (c) Outercurve Foundation. All rights reserved.
//
//-----------------------------------------------------------------------
namespace DotNetOpenAuth.Messaging {
using System;
///
/// Implemented by messages that have explicit recipients
/// (direct requests and all indirect messages).
///
public interface IDirectedProtocolMessage : IProtocolMessage {
///
/// Gets the preferred method of transport for the message.
///
///
/// For indirect messages this will likely be GET+POST, which both can be simulated in the user agent:
/// the GET with a simple 301 Redirect, and the POST with an HTML form in the response with javascript
/// to automate submission.
///
HttpDeliveryMethods HttpMethods { get; }
///
/// Gets the URL of the intended receiver of this message.
///
Uri Recipient { get; }
}
}