diff options
author | MW | 2007-12-05 19:02:57 +0000 |
---|---|---|
committer | MW | 2007-12-05 19:02:57 +0000 |
commit | d2736437d42758ddefee4e50e23c465e514077be (patch) | |
tree | 35d9ece58c1c9d63d28015a60964a5103eb1a343 /OpenSim/Framework/Servers/SynchronousRestObjectPoster.cs | |
parent | From Justin Casey (IBM) (diff) | |
download | opensim-SC-d2736437d42758ddefee4e50e23c465e514077be.zip opensim-SC-d2736437d42758ddefee4e50e23c465e514077be.tar.gz opensim-SC-d2736437d42758ddefee4e50e23c465e514077be.tar.bz2 opensim-SC-d2736437d42758ddefee4e50e23c465e514077be.tar.xz |
Some refactoring of the RestObjectPoster (and related classes).
Diffstat (limited to 'OpenSim/Framework/Servers/SynchronousRestObjectPoster.cs')
-rw-r--r-- | OpenSim/Framework/Servers/SynchronousRestObjectPoster.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Framework/Servers/SynchronousRestObjectPoster.cs b/OpenSim/Framework/Servers/SynchronousRestObjectPoster.cs index dde4c02..11a74b1 100644 --- a/OpenSim/Framework/Servers/SynchronousRestObjectPoster.cs +++ b/OpenSim/Framework/Servers/SynchronousRestObjectPoster.cs | |||
@@ -9,12 +9,12 @@ namespace OpenSim.Framework.Servers | |||
9 | { | 9 | { |
10 | public class SynchronousRestObjectPoster | 10 | public class SynchronousRestObjectPoster |
11 | { | 11 | { |
12 | public static TResponse BeginPostObject<TRequest, TResponse>(string requestUrl, TRequest obj) | 12 | public static TResponse BeginPostObject<TRequest, TResponse>(string verb, string requestUrl, TRequest obj) |
13 | { | 13 | { |
14 | Type type = typeof(TRequest); | 14 | Type type = typeof(TRequest); |
15 | 15 | ||
16 | WebRequest request = WebRequest.Create(requestUrl); | 16 | WebRequest request = WebRequest.Create(requestUrl); |
17 | request.Method = "POST"; | 17 | request.Method = verb; |
18 | request.ContentType = "text/xml"; | 18 | request.ContentType = "text/xml"; |
19 | 19 | ||
20 | MemoryStream buffer = new MemoryStream(); | 20 | MemoryStream buffer = new MemoryStream(); |