Document that http::geturl processes the event loop without -command
The _::http::geturl_ command blocks until the operation completes, unless the -command option specifies a callback that is invoked when the HTTP transaction completes.
IMHO it should be mentioned that the command may process pending events when not called with -command.
An example may be constructed by two wish consoles.
The server does not answer:
% socket -server accept 30030
sock040253F8
2 % proc accept args {}
The client asks the server:
% package require http
2.9.1
% catch {http::geturl http://localhost:30030} h
%
On the console, one may press "Enter" to enter additional commands. Thus, the http::geturl command probably executed a vwait command and thus processes events.
IMHO the programmer should know when a command may enter the event loop. It may also be stated, that the command will not work without event loop, even without the -command switch.
So, a proposed additional remark after the upper paragraph is:
Note: The event queue is even used without the -command option. As a side effect, arbitrary commands may be processed while http::geturl is running.
d5e8ce86f0Ticket [93551c1230]: Document that http::geturl processes the event loop without -command check-in2020-11-16 14:06:50
Committed by checkin [d5e8ce86f0].