Some refactoring of the RestObjectPoster (and related classes).

This commit is contained in:
MW
2007-12-05 19:02:57 +00:00
parent 4b77821275
commit d2736437d4
5 changed files with 17 additions and 7 deletions

View File

@@ -9,12 +9,12 @@ namespace OpenSim.Framework.Servers
{
public class SynchronousRestObjectPoster
{
public static TResponse BeginPostObject<TRequest, TResponse>(string requestUrl, TRequest obj)
public static TResponse BeginPostObject<TRequest, TResponse>(string verb, string requestUrl, TRequest obj)
{
Type type = typeof(TRequest);
WebRequest request = WebRequest.Create(requestUrl);
request.Method = "POST";
request.Method = verb;
request.ContentType = "text/xml";
MemoryStream buffer = new MemoryStream();