classref: Sync with current 2.1 source

This commit is contained in:
Rémi Verschelde
2017-09-06 14:47:12 +02:00
parent 6c9e0a39f0
commit 53517d1d21
46 changed files with 474 additions and 247 deletions

View File

@@ -256,7 +256,7 @@ To create a POST request with query strings to push to the server, do:
var fields = {"username" : "user", "password" : "pass"}
var queryString = httpClient.query_string_from_dict(fields)
var headers = :ref:`"Content-Type: application/x-www-form-urlencoded", "Content-Length: " + str(queryString.length())<class_"content-type: application/x-www-form-urlencoded", "content-length: " + str(querystring.length())>`
var headers = ["Content-Type: application/x-www-form-urlencoded", "Content-Length: " + str(queryString.length())]
var result = httpClient.request(httpClient.METHOD_POST, "index.php", headers, queryString)
.. _class_HTTPClient_request_raw: