Skip to content

updated icf handler for new abap2UI5 handler #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions srv/zcl_sicf.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,9 @@ CLASS zcl_sicf IMPLEMENTATION.

METHOD if_http_extension~handle_request.

DATA lv_req TYPE string.
lv_req = server->request->get_cdata( ).

DATA lv_resp TYPE string.
lv_resp = z2ui5_cl_http_handler=>main( lv_req ).

server->response->set_cdata( lv_resp ).
server->response->set_header_field( name = `cache-control` value = `no-cache` ).
server->response->set_status( code = 200 reason = `success` ).
data lo_server type ref to z2ui5_cl_http_handler.
lo_server = z2ui5_cl_http_handler=>factory( server ).
lo_server->main( ).

ENDMETHOD.

Expand Down