-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HTTP Agent: Support writing responses to Writers
This commit adds two new functions to the http.Agent object: agent.GetToWriter() agent.PostToWriter() These functions use the same URL fetching logic but write the response of the request to a io.Writer I've reworked the internal logic of the existing functions to reuse the request logic everywhere but the outward interface reamins intact, except for the addition of these two functions. Signed-off-by: Adolfo Garcia Veytia (puerco) <puerco@chainguard.dev>
- Loading branch information
Showing
2 changed files
with
134 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters