mirror of https://gitee.com/bigwinds/arangodb
remove long gone long_echo functionality (#4645)
This commit is contained in:
parent
0b99acc04d
commit
878ee09df9
|
@ -1,6 +1,8 @@
|
|||
devel
|
||||
-----
|
||||
|
||||
* remove long disfunctional admin/long_echo handler
|
||||
|
||||
* fixed Foxx API:
|
||||
|
||||
* PUT /_api/foxx/service: Respect force flag
|
||||
|
|
|
@ -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 -->
|
||||
|
|
|
@ -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
|
||||
|
|
@ -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
|
||||
// //////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue