package httpx

import 

// OutputFile streams the response body to a file path.
// @group Download Options
//
// Applies to individual requests only.
// Example: download to file
//
//	c := httpx.New()
//	_ = httpx.Get[string](c, "https://example.com/file", httpx.OutputFile("/tmp/file.bin"))
func ( string) OptionBuilder {
	return OptionBuilder{}.OutputFile()
}

func ( OptionBuilder) ( string) OptionBuilder {
	return .add(requestOnly(func( *req.Request) {
		.SetOutputFile()
	}))
}