anchor.diff:  
       INTERFACES if_http_extension.
   
  -    CONSTANTS cv_url TYPE string VALUE '/SAP/zwabap' ##NO_TEXT.
  -
  +    CONSTANTS c_url TYPE string VALUE '/SAP/zwabap' ##NO_TEXT.
     PROTECTED SECTION.
   
       METHODS to_json
  
positive.code:       read_mime( lv_path ).
      ENDIF.
  
      server->response->set_status( code = 200
                                    reason = lv_reason ).
  
    ENDMETHOD.
  
  
    METHOD read_mime.
  
  * todo, does this work with browser caching?
  * or use something more standard instead?
  
      DATA: li_api  TYPE REF TO if_mr_api,
            lv_data TYPE xstring,
            lv_mime TYPE string,
            lv_url  TYPE string.
  
  
      lv_url = cv_url && iv_file.
  
      li_api = cl_mime_repository_api=>if_mr_api~get_api( ).
  
      li_api->get(
        EXPORTING
          i_url       = lv_url
        IMPORTING
          e_content   = lv_data
          e_mime_type = lv_mime ).
  
      mi_server->response->set_content_type( lv_mime ).
      mi_server->response->set_data( lv_data ).
  
negative.code:     DATA(lv_method) = server->request->get_method( ).
  
      SPLIT lv_path AT '/' INTO TABLE lt_path.
      READ TABLE lt_path INDEX 5 INTO lv_name.              "#EC CI_SUBRC
      TRANSLATE lv_name TO UPPER CASE.
  
  * todo, refactor
  