Entering content frameBackground documentation Processing the Request Using the HTTP Extension (7) Locate the document in its SAP Library structure

The programmer decides what the HTTP request handler does with the server control block, and sets this in the request handling method HANDLE_REQUEST()of the interface IF_HTTP_EXTENSION.

The following example gives an example of what the HTTP request handler can do.

Example

First, the request handler gets the request object from the server control block.

The method HANDLE_REQUEST() is called. A reference to the interface IF_HTTP_SERVER is given as an argument, so that the HTTP request handler can work with the request and response data.

The HTTP request handler can now execute its processes and create a response. It can work on the data as much as required (with the given methods), call other programs, use databases, and so on. During processing, the response object (the attribute RESPONSE of the server control block) is filled with content; in other words, the response is prepared for the HTTP client.

As soon as these processes are finished, the HTTP request handler returns control to the ICF controller by exiting from the method HANDLE_REQUEST().

Finally comes Sending the Reply (9-10).

Leaving content frame