Retorna o IP do client que realizou a requisição corrente.
getClientIP()
Nome | Tipo | Descrição |
---|---|---|
cClientIP | character | IP do client da requisição |
#include "tlpp-core.th"
#include "tlpp-rest.th"
@Get("/documentation/getClientIP")
Function u_fGetClientIP()
local cResponse as character
local cClientIP as character
cClientIP := oRest:getClientIP()
cResponse := "{'Client IP':" + cClientIP + "}"
oRest:SetResponse(cResponse)
Return .T.
07/2022