It means in the body of func/handler responsible for this POST Endpoint I pack the necessary actions and each time client calls this endpoint those actions will be also executed. Then I do not need to check regularly when called this endpoint of server.
Sorry for my naivety Am Di., 7. Dez. 2021 um 15:41 Uhr schrieb Brian Candler <b.cand...@pobox.com >: > > And this POST endpoint should be checked regularly to see when the > changes happened? As by each change the server does some action. > > No, that's not how webservers work. > > Regardless of the language you are using: you write some code which > handles the POST and returns a status code (and possibly empty) body for > the response. In other words, your code runs immediately. Your code is > responsible for processing the content of the request, and generating the > response. > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/835d9b7f-1a02-46ea-9810-a2c0d8e81095n%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/835d9b7f-1a02-46ea-9810-a2c0d8e81095n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAJE-_ReMQsfwMhw5UNYNWEOQu5D_Pxz2yBmUz7E5s2%2B9Hd0ZBA%40mail.gmail.com.