Hi,
Thank you for posting your query.
Kindly check the information provided below to answer your query.
The following list identifies a typical sequence of operations that use the HTTP Server API:
Initialize the HTTP Server API by using the HttpInitialize function.
Create a request queue by using the HttpCreateHttpHandle function.
Register one or more URLs by using the HttpAddUrl function.
Receive incoming requests directed to registered URLs by using the HttpReceiveHttpRequest function and send HTTP responses for these requests by using the HttpSendHttpResponse function.
(Optional) When sending a response, send an additional entity body by using the HttpSendResponseEntityBody function.
Perform clean-up operations by using the HttpRemoveUrl, CloseHandle and HttpTerminate functions.
Go to this link for your reference https://learn.microsoft.com/en-us/windows/win32/http/http-server-api-overview
-------------------------------------------------------------------------------------------------------------------------------------
If the answer is helpful kindly click "Accept as Answer" and upvote it. Thanks.