Skip to content

Commit 97208f7

Browse files
committed
Added documentation to the Http static helper methods
1 parent 9adf264 commit 97208f7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Scripts/Http.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,66 +88,79 @@ public static bool RemoveSuperHeader(string key)
8888

8989
#region Static Requests
9090

91+
/// <see cref="Duck.Http.Service.IHttpService.Get"/>
9192
public static IHttpRequest Get(string uri)
9293
{
9394
return Instance.service.Get(uri);
9495
}
9596

97+
/// <see cref="Duck.Http.Service.IHttpService.GetTexture"/>
9698
public static IHttpRequest GetTexture(string uri)
9799
{
98100
return Instance.service.GetTexture(uri);
99101
}
100102

103+
/// <see cref="Duck.Http.Service.IHttpService.Post(string, string)"/>
101104
public static IHttpRequest Post(string uri, string postData)
102105
{
103106
return Instance.service.Post(uri, postData);
104107
}
105108

109+
/// <see cref="Duck.Http.Service.IHttpService.Post(string, WWWForm)"/>
106110
public static IHttpRequest Post(string uri, WWWForm formData)
107111
{
108112
return Instance.service.Post(uri, formData);
109113
}
110114

115+
/// <see cref="Duck.Http.Service.IHttpService.Post(string, Dictionary&lt;string, string&gt;)"/>
111116
public static IHttpRequest Post(string uri, Dictionary<string, string> formData)
112117
{
113118
return Instance.service.Post(uri, formData);
114119
}
115120

121+
/// <see cref="Duck.Http.Service.IHttpService.Post(string, List&lt;IMultipartFormSection&gt;)"/>
116122
public static IHttpRequest Post(string uri, List<IMultipartFormSection> multipartForm)
117123
{
118124
return Instance.service.Post(uri, multipartForm);
119125
}
120126

127+
/// <see cref="Duck.Http.Service.IHttpService.Post(string, byte[], string)"/>
121128
public static IHttpRequest Post(string uri, byte[] bytes, string contentType)
122129
{
123130
return Instance.service.Post(uri, bytes, contentType);
124131
}
125132

133+
/// <see cref="Duck.Http.Service.IHttpService.PostJson"/>
126134
public static IHttpRequest PostJson(string uri, string json)
127135
{
128136
return Instance.service.PostJson(uri, json);
129137
}
130138

139+
/// <see cref="Duck.Http.Service.IHttpService.PostJson{T}(string, T)"/>
131140
public static IHttpRequest PostJson<T>(string uri, T payload) where T : class
132141
{
133142
return Instance.service.PostJson(uri, payload);
134143
}
135144

145+
/// <see cref="Duck.Http.Service.IHttpService.Put(string, byte[])"/>
136146
public static IHttpRequest Put(string uri, byte[] bodyData)
137147
{
138148
return Instance.service.Put(uri, bodyData);
139149
}
140150

151+
/// <see cref="Duck.Http.Service.IHttpService.Put(string, string)"/>
141152
public static IHttpRequest Put(string uri, string bodyData)
142153
{
143154
return Instance.service.Put(uri, bodyData);
144155
}
145156

157+
/// <see cref="Duck.Http.Service.IHttpService.Delete"/>
146158
public static IHttpRequest Delete(string uri)
147159
{
148160
return Instance.service.Delete(uri);
149161
}
150162

163+
/// <see cref="Duck.Http.Service.IHttpService.Head"/>
151164
public static IHttpRequest Head(string uri)
152165
{
153166
return Instance.service.Head(uri);

0 commit comments

Comments
 (0)