RequestAccept (http)
stock}} |
<source lang='delphi'>property RequestAccept:string;</source>
Lecture et écriture
Cette propriété permet l'accès en lecture et écriture de la propriété Accept de la requête.
Exemple: <source lang='delphi'> var http : THttpClient; begin
http := ThttpClient.Create(nil); try http.URL := 'http://localhost:82/treso/server/sdata/api/echo'; http.method := hrmPost; http.postdatastr := '{"paramName":"value"}'; http.RequestAccept := 'application/json'; http.Execute; ShowMessage(http.ResponseStr); except ShowMessage(http.ErrorText); end;
end;
end; </source>
{{#if:Requêtes HTTP (tech)|
{{#if:Requêtes HTTP (tech)|— Requêtes HTTP (tech) |}} — Développement DSM —
|
{{#if:|— [[{{{1}}}]] |}} — Développement DSM —
}}