anchor.diff:  CLASS lcl_http DEFINITION FINAL.
   
     PUBLIC SECTION.
  +    CONSTANTS: BEGIN OF gc_scheme,
  +                 digest TYPE string VALUE 'Digest',
  +               END OF gc_scheme.
  +
       CLASS-METHODS:
         get_agent
           RETURNING VALUE(rv_agent) TYPE string,
  
positive.code:   METHOD acquire_login_details.
  
      DATA: lv_default_user TYPE string,
            lv_scheme       TYPE string,
            lv_user         TYPE string,
            lv_pass         TYPE string.
  
  
      lv_default_user = lcl_app=>user( )->get_repo_username( iv_url ).
  
negative.code: *&  Include           ZABAPGIT_HTTP
  *&---------------------------------------------------------------------*
  
  CLASS lcl_http_digest DEFINITION FINAL.
  
    PUBLIC SECTION.
      METHODS:
        constructor
          IMPORTING
            ii_client TYPE REF TO if_http_client
            iv_username TYPE string
            iv_password TYPE string,
        run
          IMPORTING
            ii_client TYPE REF TO if_http_client.
  
    PRIVATE SECTION.
      DATA: mv_ha1      TYPE string,
            mv_username TYPE string,
            mv_realm    TYPE string,
            mv_qop      TYPE string,
            mv_nonce    TYPE string.
  
      CLASS-DATA: gv_nc TYPE n LENGTH 8.
  
      CLASS-METHODS:
        md5
          IMPORTING
            iv_data        TYPE string
          RETURNING
            VALUE(rv_hash) TYPE string.
  
      METHODS:
        hash
          IMPORTING
            iv_qop             TYPE string
            iv_nonce           TYPE string
            iv_uri             TYPE string
            iv_method          TYPE string
            iv_cnonse          TYPE string
         RETURNING
            VALUE(rv_response) TYPE string,
        parse
          IMPORTING
            ii_client TYPE REF TO if_http_client.
  
  ENDCLASS.
  
  CLASS lcl_http_client DEFINITION FINAL.
  
    PUBLIC SECTION.
  
      METHODS:
        constructor
          IMPORTING ii_client TYPE REF TO if_http_client,
        close,
        set_digest
          IMPORTING io_digest TYPE REF TO lcl_http_digest,
        send_receive_close
          IMPORTING
            iv_data TYPE xstring
  