1
0
Fork 0

remove long gone long_echo functionality (#4645)

This commit is contained in:
Wilfried Goesgens 2018-02-21 16:34:52 +01:00 committed by Jan
parent 0b99acc04d
commit 878ee09df9
4 changed files with 2 additions and 43 deletions

View File

@ -1,6 +1,8 @@
devel
-----
* remove long disfunctional admin/long_echo handler
* fixed Foxx API:
* PUT /_api/foxx/service: Respect force flag

View File

@ -27,8 +27,6 @@ This is an overview of ArangoDB's HTTP interface for miscellaneous functions.
<!-- js/actions/api-system.js -->
@startDocuBlock JSF_get_admin_echo
@startDocuBlock JSF_get_admin_long_echo
@startDocuBlock JSF_get_admin_database_version
<!-- lib/Admin/RestShutdownHandler.cpp -->

View File

@ -1,22 +0,0 @@
@startDocuBlock JSF_get_admin_long_echo
@brief Send back what was sent in, headers, post body etc.
@RESTHEADER{GET /_admin/long_echo, Return current request and continues}
@RESTDESCRIPTION
The call returns an object with the following attributes:
- *headers*: object with HTTP headers received
- *requestType*: the HTTP request method (e.g. GET)
- *parameters*: object with query parameters received
@RESTRETURNCODES
@RESTRETURNCODE{200}
Echo was returned successfully.
@endDocuBlock

View File

@ -63,25 +63,6 @@ actions.defineHttp({
}
});
// //////////////////////////////////////////////////////////////////////////////
// / @brief was docuBlock JSF_get_admin_long_echo
// //////////////////////////////////////////////////////////////////////////////
actions.defineHttp({
url: '_admin/long_echo',
prefix: true,
callback: function (req, res) {
require('console').log('long polling request from client %s', req.client.id);
res.responseCode = actions.HTTP_OK;
res.contentType = 'application/json; charset=utf-8';
res.headers = { 'transfer-encoding': 'chunked' };
res.body = JSON.stringify(req);
}
});
// //////////////////////////////////////////////////////////////////////////////
// / @brief was docuBlock JSF_get_admin_statistics
// //////////////////////////////////////////////////////////////////////////////