Skip to content

Commit 14f1a74

Browse files
committed
Convert function wdlExecute to private function _wdlExecute
1 parent 90dfc1f commit 14f1a74

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

behaviors/stackbehavior.livecodescript

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ end wdlSet
180180
--| Version: 1.0
181181
--| Created: 2020-05-04
182182
--| Last Mod: 2020-05-04
183-
--| Requires: wdlExecute()
183+
--| Requires: _wdlExecute()
184184
--|
185185
--| Summary: Get comma delimited list of server methods.
186186
--|
@@ -198,7 +198,7 @@ function wdlGetserverMethods pReqID
198198
put "wdlGetserverMethods" into sWebDavPoolA[pReqID]["requestHandler"]
199199

200200
# REQUEST
201-
put wdlExecute(pReqID) into tServerMethods
201+
put _wdlExecute(pReqID) into tServerMethods
202202

203203
return tServerMethods
204204
end wdlGetserverMethods
@@ -213,7 +213,7 @@ end wdlGetserverMethods
213213
--| Version: 1.0
214214
--| Created: 2020-05-04
215215
--| Last Mod: 2020-05-04
216-
--| Requires: wdlPropertyNamesXMLdata(), wdlExecute()
216+
--| Requires: wdlPropertyNamesXMLdata(), _wdlExecute()
217217
--|
218218
--| Summary: Get array of file properties.
219219
--|
@@ -240,7 +240,7 @@ function wdlGetFileProps pReqID pProps
240240
put tContType into sWebDavPoolA[pReqID]["contentType"]
241241

242242
# REQUEST
243-
put wdlExecute(pReqID) into tFilePropsA
243+
put _wdlExecute(pReqID) into tFilePropsA
244244

245245
return tFilePropsA
246246
end wdlGetFileProps
@@ -256,7 +256,7 @@ end wdlGetFileProps
256256
--| Version: 1.0
257257
--| Created: 2020-05-04
258258
--| Last Mod: 2020-05-04
259-
--| Requires: wdlExecute()
259+
--| Requires: _wdlExecute()
260260
--|
261261
--| Summary: Download file.
262262
--|
@@ -274,7 +274,7 @@ function wdlGetFile pReqID
274274
put "wdlGetFile" into sWebDavPoolA[pReqID]["requestHandler"]
275275

276276
# REQUEST
277-
put wdlExecute(pReqID) into tData
277+
put _wdlExecute(pReqID) into tData
278278

279279
return tData
280280
end wdlGetFile
@@ -290,7 +290,7 @@ end wdlGetFile
290290
--| Version: 1.0
291291
--| Created: 2020-05-05
292292
--| Last Mod: 2020-05-05
293-
--| Requires: wdlExecute()
293+
--| Requires: _wdlExecute()
294294
--|
295295
--| Summary: Write permission test.
296296
--|
@@ -320,7 +320,7 @@ function wdlWritePermission pReqID
320320
put tDataToUpload into sWebDavPoolA[pReqID]["dataToUpload"]
321321

322322
# REQUEST
323-
put wdlExecute(pReqID) into tResponse
323+
put _wdlExecute(pReqID) into tResponse
324324

325325
return tResponse
326326
end wdlWritePermission
@@ -336,7 +336,7 @@ end wdlWritePermission
336336
--| Version: 1.0
337337
--| Created: 2020-05-05
338338
--| Last Mod: 2020-05-05
339-
--| Requires: wdlExecute()
339+
--| Requires: _wdlExecute()
340340
--|
341341
--| Summary: Delete file or folder.
342342
--|
@@ -354,7 +354,7 @@ function wdlDeleteFileFolder pReqID
354354
put "wdlDeleteFileFolder" into sWebDavPoolA[pReqID]["requestHandler"]
355355

356356
# REQUEST
357-
put wdlExecute(pReqID) into tResponse
357+
put _wdlExecute(pReqID) into tResponse
358358

359359
return tResponse
360360
end wdlDeleteFileFolder
@@ -370,7 +370,7 @@ end wdlDeleteFileFolder
370370
--| Version: 1.0
371371
--| Created: 2020-05-05
372372
--| Last Mod: 2020-05-05
373-
--| Requires: wdlExecute()
373+
--| Requires: _wdlExecute()
374374
--|
375375
--| Summary: Upload a file.
376376
--|
@@ -394,7 +394,7 @@ function wdlPutFile pReqID
394394
put tDataToUpload into sWebDavPoolA[pReqID]["dataToUpload"]
395395

396396
# REQUEST
397-
put wdlExecute(pReqID) into tResponse
397+
put _wdlExecute(pReqID) into tResponse
398398

399399
return tResponse
400400
end wdlPutFile
@@ -410,7 +410,7 @@ end wdlPutFile
410410
--| Version: 1.0
411411
--| Created: 2020-05-05
412412
--| Last Mod: 2020-05-05
413-
--| Requires: wdlExecute()
413+
--| Requires: _wdlExecute()
414414
--|
415415
--| Summary: Get a XML directory listing.
416416
--|
@@ -432,7 +432,7 @@ function wdlGetFileList pReqID
432432
put tContType into sWebDavPoolA[pReqID]["contentType"]
433433

434434
# REQUEST
435-
put wdlExecute(pReqID) into tFileListXML
435+
put _wdlExecute(pReqID) into tFileListXML
436436

437437
return tFileListXML
438438
end wdlGetFileList
@@ -448,7 +448,7 @@ end wdlGetFileList
448448
--| Version: 1.0
449449
--| Created: 2020-05-05
450450
--| Last Mod: 2020-05-05
451-
--| Requires: wdlExecute()
451+
--| Requires: _wdlExecute()
452452
--|
453453
--| Summary: Create folder on webDAV server.
454454
--|
@@ -466,7 +466,7 @@ function wdlCreateFolder pReqID
466466
put "wdlCreateFolder" into sWebDavPoolA[pReqID]["requestHandler"]
467467

468468
# REQUEST
469-
put wdlExecute(pReqID) into tResponse
469+
put _wdlExecute(pReqID) into tResponse
470470

471471
return tResponse
472472
end wdlCreateFolder
@@ -481,7 +481,7 @@ end wdlCreateFolder
481481
--| Version: 1.0
482482
--| Created: 2020-05-05
483483
--| Last Mod: 2020-05-05
484-
--| Requires: wdlSetRemovePropXMLdata(), wdlExecute()
484+
--| Requires: wdlSetRemovePropXMLdata(), _wdlExecute()
485485
--|
486486
--| Summary: Set file properties.
487487
--|
@@ -525,7 +525,7 @@ function wdlSetFileProps pReqID pSetPropsA pRemovePropsA
525525
put tContLength into sWebDavPoolA[pReqID]["contentLength"]
526526

527527
# REQUEST
528-
put wdlExecute(pReqID) into tResponse
528+
put _wdlExecute(pReqID) into tResponse
529529

530530
return tResponse
531531
end wdlSetFileProps
@@ -541,7 +541,7 @@ end wdlSetFileProps
541541
--| Version: 1.0
542542
--| Created: 2020-05-05
543543
--| Last Mod: 2020-05-05
544-
--| Requires: wdlPropertyNamesXMLdata(), wdlExecute()
544+
--| Requires: wdlPropertyNamesXMLdata(), _wdlExecute()
545545
--|
546546
--| Summary: Get custom properties.
547547
--|
@@ -568,7 +568,7 @@ function wdlGetCustomProps pReqID pProps
568568
put tContType into sWebDavPoolA[pReqID]["contentType"]
569569

570570
# REQUEST
571-
put wdlExecute(pReqID) into tFilePropsA
571+
put _wdlExecute(pReqID) into tFilePropsA
572572

573573
return tFilePropsA
574574
end wdlGetCustomProps
@@ -584,7 +584,7 @@ end wdlGetCustomProps
584584
--| Version: 1.0
585585
--| Created: 2020-05-05
586586
--| Last Mod: 2020-05-05
587-
--| Requires: wdlExecute()
587+
--| Requires: _wdlExecute()
588588
--|
589589
--| Summary: Lock file on webDAV server.
590590
--|
@@ -609,7 +609,7 @@ function wdlLock pReqID
609609
put tType into sWebDavPoolA[pReqID]["lockType"]
610610

611611
# REQUEST
612-
put wdlExecute(pReqID) into tResponse
612+
put _wdlExecute(pReqID) into tResponse
613613

614614
put "Lock token:" && the cCurrentLockToken of stack "WebDavLib" & return before tResponse
615615

@@ -627,7 +627,7 @@ end wdlLock
627627
--| Version: 1.0
628628
--| Created: 2020-05-05
629629
--| Last Mod: 2020-05-05
630-
--| Requires: wdlExecute()
630+
--| Requires: _wdlExecute()
631631
--|
632632
--| Summary: Unlock file on webDAV server.
633633
--|
@@ -656,7 +656,7 @@ function wdlUnlock pReqID
656656
put "wdlUnlock" into sWebDavPoolA[pReqID]["requestHandler"]
657657

658658
# REQUEST
659-
put wdlExecute(pReqID) into tResponse
659+
put _wdlExecute(pReqID) into tResponse
660660

661661
if "204" is in tResponse then
662662
# SUCCESS, GET RID OF LOCK TOKEN
@@ -680,7 +680,7 @@ end wdlUnlock
680680
--| Version: 1.0
681681
--| Created: 2020-05-05
682682
--| Last Mod: 2020-05-05
683-
--| Requires: wdlExecute()
683+
--| Requires: _wdlExecute()
684684
--|
685685
--| Summary: Get all headers of a file.
686686
--|
@@ -698,7 +698,7 @@ function wdlGetFileHeaders pReqID
698698
put "wdlGetFileHeader" into sWebDavPoolA[pReqID]["requestHandler"]
699699

700700
# REQUEST
701-
put wdlExecute(pReqID) into tHeaderValuesA
701+
put _wdlExecute(pReqID) into tHeaderValuesA
702702

703703
return tHeaderValuesA
704704
end wdlGetFileHeaders
@@ -1178,7 +1178,7 @@ end _wdlProcessResponse
11781178

11791179

11801180
/*----------------------------------------------------------------------
1181-
--| FUNCTION wdlExecute
1181+
--| FUNCTION _wdlExecute
11821182
--|
11831183
--| Author: rabit
11841184
--| Version: 1.3
@@ -1189,14 +1189,14 @@ end _wdlProcessResponse
11891189
--|
11901190
--| Summary: Execute a request and get the result(s).
11911191
--|
1192-
--| Format: wdlExecute(param1)
1192+
--| Format: _wdlExecute(param1)
11931193
--|
11941194
--| Parameters: integer <pReqID>
11951195
--|
11961196
--| Return: string
11971197
----------------------------------------------------------------------*/
11981198

1199-
function wdlExecute pReqID
1199+
private function _wdlExecute pReqID
12001200
local tRequestHeadersA, tRequestHeaders, tRequestHeadersXML, tMethods, tSocketID
12011201
local tRequestHeadersTemp, tRequestResponse, tErrorString, tServerResponse
12021202
local tAuthTypeLineNum, tAuthResponseText, tNonce, tQop, tOpaque
@@ -1582,7 +1582,7 @@ function wdlExecute pReqID
15821582
end if -- if "401" is in line 1 of tRequestResponse
15831583

15841584
end if -- if sWebDavPoolA[pReqID]["authType"] is "BASIC"
1585-
end wdlExecute
1585+
end _wdlExecute
15861586

15871587

15881588

0 commit comments

Comments
 (0)