|
|
@ -24,24 +24,23 @@ |
|
|
|
, receiveSslData/2 |
|
|
|
]). |
|
|
|
|
|
|
|
|
|
|
|
-spec callAgency(poolNameOrSocket(), method(), path()) -> term() | {error, term()}. |
|
|
|
-spec callAgency(poolNameOrSocket(), method(), path()) -> eArango:dbRet(). |
|
|
|
callAgency(PoolNameOrSocket, Method, Path) -> |
|
|
|
callAgency(PoolNameOrSocket, Method, Path, ?AgDefQuery, ?AgDefHeader, ?AgDefBody, false, ?AgDefTimeout). |
|
|
|
|
|
|
|
-spec callAgency(poolNameOrSocket(), method(), path(), queryPars()) -> term() | {error, term()}. |
|
|
|
-spec callAgency(poolNameOrSocket(), method(), path(), queryPars()) -> eArango:dbRet(). |
|
|
|
callAgency(PoolNameOrSocket, Method, Path, QueryPars) -> |
|
|
|
callAgency(PoolNameOrSocket, Method, Path, QueryPars, ?AgDefHeader, ?AgDefBody, false, ?AgDefTimeout). |
|
|
|
|
|
|
|
-spec callAgency(poolNameOrSocket(), method(), path(), queryPars(), headers(), body()) -> term() | {error, term()}. |
|
|
|
-spec callAgency(poolNameOrSocket(), method(), path(), queryPars(), headers(), body()) -> eArango:dbRet(). |
|
|
|
callAgency(PoolNameOrSocket, Method, Path, QueryPars, Headers, Body) -> |
|
|
|
callAgency(PoolNameOrSocket, Method, Path, QueryPars, Headers, Body, false, ?AgDefTimeout). |
|
|
|
|
|
|
|
-spec callAgency(poolNameOrSocket(), method(), path(), queryPars(), headers(), body(), boolean()) -> term() | {error, atom()}. |
|
|
|
-spec callAgency(poolNameOrSocket(), method(), path(), queryPars(), headers(), body(), boolean()) -> eArango:dbRet(). |
|
|
|
callAgency(PoolNameOrSocket, Method, Path, QueryPars, Headers, Body, IsSystem) -> |
|
|
|
callAgency(PoolNameOrSocket, Method, Path, QueryPars, Headers, Body, IsSystem, ?AgDefTimeout). |
|
|
|
|
|
|
|
-spec callAgency(poolNameOrSocket(), method(), path(), queryPars(), headers(), body(), boolean(), timeout()) -> term() | {error, atom()}. |
|
|
|
-spec callAgency(poolNameOrSocket(), method(), path(), queryPars(), headers(), body(), boolean(), timeout()) -> eArango:dbRet(). |
|
|
|
callAgency(PoolNameOrSocket, Method, Path, QueryPars, Headers, Body, IsSystem, Timeout) -> |
|
|
|
case castAgency(PoolNameOrSocket, Method, Path, QueryPars, Headers, Body, self(), IsSystem, Timeout) of |
|
|
|
{waitRRT, RequestId, MonitorRef} -> |
|
|
@ -121,7 +120,7 @@ receiveReqRet(RequestId, MonitorRef) -> |
|
|
|
#agReqRet{messageId = RequestId, reply = Reply} -> |
|
|
|
erlang:demonitor(MonitorRef), |
|
|
|
case Reply of |
|
|
|
{error, Err} -> |
|
|
|
{error, _} = Err -> |
|
|
|
Err; |
|
|
|
_ -> |
|
|
|
{[_1, _2, StatusCode, HeaderMap], BodyMap} = eVPack:decodeAll(Reply), |
|
|
|