IsRequestBodyTooLarge returns true if the error is "http: request body too large".
(err error)
| 28 | |
| 29 | // IsRequestBodyTooLarge returns true if the error is "http: request body too large". |
| 30 | func IsRequestBodyTooLarge(err error) bool { |
| 31 | return err != nil && strings.Contains(err.Error(), "http: request body too large") |
| 32 | } |
| 33 | |
| 34 | // BasicAuth configures basic authentication for HTTP clients. |
| 35 | type BasicAuth struct { |