mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00

* string map: public entries (read only) * port http agent * draft wip * drafting * fix SSL * port ajson * integrate ajson and http_agent * agent global headers * github enumerator * update ajson * draft wip * enumerator factory * http_agent via factory * proxy * repo->switch_origin draft * refactor enum factory * Revert "refactor enum factory" This reverts commit bcfef40b38991adfe5f73677919db6bd0c652f7c. * page wiring draft * scripts draft * "let it work!" * repo setings page draft * linter * linter * linter * linter * linter * better settings page * finetune page * cleanups * change hotkey * fix ajson_error * Update src/zcl_abapgit_repo_online.clas.abap Co-authored-by: Lars Hvam <larshp@hotmail.com> * abaplint nesting 6 * remove description * back to good old popups * linter * move commands to branches dropdown * auth helpers * move json to separate package Co-authored-by: Lars Hvam <larshp@hotmail.com>
30 lines
876 B
ABAP
30 lines
876 B
ABAP
INTERFACE zif_abapgit_http_agent
|
|
PUBLIC .
|
|
|
|
CONSTANTS:
|
|
BEGIN OF c_methods,
|
|
get TYPE string VALUE 'GET',
|
|
post TYPE string VALUE 'POST',
|
|
put TYPE string VALUE 'PUT',
|
|
delete TYPE string VALUE 'DELETE',
|
|
patch TYPE string VALUE 'PATCH',
|
|
END OF c_methods.
|
|
|
|
METHODS global_headers
|
|
RETURNING
|
|
VALUE(ro_global_headers) TYPE REF TO zcl_abapgit_string_map.
|
|
|
|
METHODS request
|
|
IMPORTING
|
|
!iv_url TYPE string
|
|
!iv_method TYPE string DEFAULT c_methods-get
|
|
!io_query TYPE REF TO zcl_abapgit_string_map OPTIONAL
|
|
!io_headers TYPE REF TO zcl_abapgit_string_map OPTIONAL
|
|
!iv_payload TYPE any OPTIONAL " can be string, xstring
|
|
RETURNING
|
|
VALUE(ri_response) TYPE REF TO zif_abapgit_http_response
|
|
RAISING
|
|
zcx_abapgit_exception .
|
|
|
|
ENDINTERFACE.
|