huin / goupnp

UPnP client library for Go (#golang)
BSD 2-Clause "Simplified" License
417 stars 84 forks source link

httpu: add context.Context and related interface #61

Closed andrew-d closed 10 months ago

andrew-d commented 10 months ago

This adds a new interface for httpu that supports a Context, and uses that context to set a deadline/timeout and also cancel the request if the context is canceled. Additionally, implement the Do method in terms of the DoWithContext method for the HTTPUClient implementation.

Updates #55