Histórico da Página
(Header Response)
Sintaxe
...
updateKeyHeaderResponse( < cKey >, < cValue > )
Parâmetros
Nome | Tipo | Descrição | Obrigatório | Referência |
---|---|---|---|---|
cKey | string | Chave cujo valor será alterado | X | |
cValue | string | Valor da chave | X |
Retorno
Nome | Tipo | Descrição |
---|
xreturn | lógico | (.T.) |
Exemplos
...
#include "tlpp-core.th"
...
#include "tlpp-rest.th"
...
// http://localhost:9090/api/testUpdateKeyHeader
...
@Get("testUpdateKeyHeader")
...
Function u_UpdateKeyHeaderExample()
...
...
Local lRet := .F.
...
...
Local cRet := 'Update realizado com sucesso'
...
lRet := oRest:updateKeyHeaderResponse("Content-Type", 26)
...
...
if !lRet
...
...
...
cRet := "Fail"
...
endif return oRest:setResponse(cRet)
Abrangência
11/2019
Visão Geral
Import HTML Content
Conteúdo das Ferramentas