String returns string representation of HTTPClientType type.
()
| 19 | |
| 20 | // String returns string representation of HTTPClientType type. |
| 21 | func (t HTTPClientType) String() string { |
| 22 | switch t { |
| 23 | case GoHTTPClient: |
| 24 | return "GoHTTPClient" |
| 25 | case ChromeHTTPClient: |
| 26 | return "ChromeHTTPClient" |
| 27 | default: |
| 28 | return fmt.Sprintf("%d", int(t)) |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | // UnknownHTTPClientError represents an error for unknown HTTP client types. |
| 33 | type UnknownHTTPClientError struct { |
no outgoing calls