WithDebugLog logs the HTTP request and response content.
func WithDebugLog(logger *log.Logger) RequestOption| Name | Type | Description |
|---|---|---|
logger* | *log.Logger |
WithDebugLog logs the HTTP request and response content. If the logger parameter is nil, it uses the default logger.
WithDebugLog is for debugging and development purposes only. It should not be used in production code. The behavior and interface of WithDebugLog is not guaranteed to be stable.