Skip to content

Commit ebdcaaf

Browse files
authored
add cl_web_http_utility=>escape_url (#1020)
1 parent b99151c commit ebdcaaf

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/http/cl_web_http_utility.clas.abap

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ CLASS cl_web_http_utility DEFINITION PUBLIC.
77
RETURNING
88
VALUE(unescaped) TYPE string.
99

10+
CLASS-METHODS escape_url
11+
IMPORTING
12+
unescaped TYPE string
13+
options TYPE i OPTIONAL
14+
RETURNING
15+
VALUE(escaped) TYPE string.
16+
1017
CLASS-METHODS decode_x_base64
1118
IMPORTING
1219
encoded TYPE string
@@ -60,6 +67,10 @@ CLASS cl_web_http_utility IMPLEMENTATION.
6067
options = options ).
6168
ENDMETHOD.
6269

70+
METHOD escape_url.
71+
escaped = cl_http_utility=>escape_url( unescaped ).
72+
ENDMETHOD.
73+
6374
METHOD decode_x_base64.
6475
decoded = cl_http_utility=>decode_x_base64( encoded ).
6576
ENDMETHOD.

0 commit comments

Comments
 (0)