javascript - Are most http requests synchronous by default? -
By default, there are most functions for synchronous requests?
I have come from Javascript and AJAX and I started working with http requests in Python. My surprise is that, by default, the http request work is synchronous, so I do not have to deal with any asynchronous behavior. For example, I'm working with the http library, and although docs does not explicitly say whether the http requests are synchronous, my own trial seems to call synchronous calls.
So is it that most HP requests are in default by default synchronous, or are most of the functions designed in this way? And my first experience with http requests (JS AJX) just happened to an asynchronous nature?
This is the language, most APIs in Python are synchronous by default and the async version is usually an "advanced" "Topics If you were using nodes, they would be async; Due to the use of JavaScript, Ajax asynchronous reason is due to the browser's nature.
Comments
Post a Comment