hmGet
hmGet = 1
Example
procedure RetrieveResource(Client: TvxHTTP; const URL: String);
begin
Client.Get(URL);
end;
Usage
hmGet selects HTTP GET for outbound retrieval and identifies requests handled by the current inbound Velox API runtime.
Additional Technical Info
hmGet is ordinal 1 of TvxHTTPMethod. TvxHTTP.Get selects it, performs the normal Velox proxy/SSL/authentication/header setup and asks Indy to write response content into TvxHTTP.Response.Content.
Staged request Content is not passed to GET and is cleared after the attempt. Encode selection parameters in the URL/query and headers as defined by the endpoint. After dispatch, Velox rewinds captured response content. Protocol error statuses are available through Response instead of being raised as Indy protocol exceptions; always inspect status and expected representation before using it.
GET is safe, idempotent and cacheable under HTTP semantics, but application code must still avoid unsafe server endpoints disguised as GET. Authentication headers, query secrets and personal data can appear in logs/caches, so use HTTPS and avoid sensitive query material.
The current Velox API Service executes inbound GET at a matched endpoint and TvxAPIRequest.HTTPMethod reports hmGet. It does this regardless of the action's stored RESTMethod; configuration metadata does not currently prevent GET from invoking an endpoint labelled for another method. Routes are keyed only by endpoint text, so separate GET and POST actions cannot coexist on the same path; synchronizing another action for that path updates the existing route target. OpenAPI correctly maps hmGet to GET.
The example is source-reviewed only; no GET, API, cache, network, runtime or image test ran.
Related Code Library entries
hmHead- GET metadata without response content.hmPost- the other inbound method currently executed by Velox.TvxHTTP.Get- outbound call.
External references
Created 2026-07-15