projectdiscovery / httpx

httpx is a fast and multi-purpose HTTP toolkit that allows running multiple probes using the retryablehttp library.
https://docs.projectdiscovery.io/tools/httpx
MIT License
7.53k stars 822 forks source link

Add `*Server.Stop` method #1857

Closed dwisiswant0 closed 1 month ago

dwisiswant0 commented 1 month ago
          The `apiServer` in `runner.httpApiEndpoint` also needs to be shutdown if `options.HttpApiEndpoint` but `runner/apiendpoint.go` has no Close or Stop function right now

Originally posted by @meme-lord in https://github.com/projectdiscovery/httpx/issues/1856#issuecomment-2272203339

### Tasks
- [x] Implement on close
dwisiswant0 commented 1 month ago

Ref: https://discord.com/channels/695645237418131507/716605549923270717/1261788558218362911