Interface ZIF_LLM_HTTP_CLIENT_WRAPPER
AI Generated documentation.
Overview
The ZIF_LLM_HTTP_CLIENT_WRAPPER interface provides a wrapper for HTTP client functionality with the following key methods:
GET_CLIENT(static) - Creates a new HTTP client instance based on client and provider configurationSET_HEADER- Sets or updates HTTP header valuesSET_URL- Sets the target URL, automatically prepending the SM59 destination pathCOMMUNICATE- Executes the HTTP request with given payload and session informationCLOSE_CLIENT- Closes the HTTP client connection
The interface defines a RESPONSE type structure containing:
TYPES: BEGIN OF response,
code TYPE sysubrc, "Return code
message TYPE string, "Response message
response TYPE string, "Response body
http_response TYPE REF TO if_http_response,
END OF response.
Dependencies
IF_HTTP_RESPONSE- SAP standard HTTP response interfaceZCX_LLM_VALIDATION- Custom validation exception classZCX_LLM_HTTP_ERROR- Custom HTTP error exception classZLLM_CLNT_CONFIG- Client configuration typeZLLM_PROVIDERS- Provider configuration typeZLLM_SESSION_ID- Session ID type