refactor url encoded form requests
This commit is contained in:
1 parent
edbfc86e56
commit
f2ffb42876
4 files changed
+33
-30
No files matched your search
@@ -211,6 +211,12 @@ namespace HttpClient
|
||||
return m
|
||||
end function
|
||||
|
||||
function UrlEncodedForm(form as object) as HttpRequest
|
||||
m.Body(UrlUtils.GetUrlEncodedForm(form))
|
||||
m.Header("Content-Type", "application/x-www-form-urlencoded")
|
||||
return m
|
||||
end function
|
||||
|
||||
function TimeoutSeconds(timeoutSeconds as integer) as HttpRequest
|
||||
m._timeoutSeconds = timeoutSeconds
|
||||
return m
|
||||
|
||||
Reference in new issue
Block a user