|
1 | 1 | package http |
2 | 2 |
|
3 | | -const ( |
4 | | - // EFailureEncodeFailed indicates that JSON encoding the request failed. This is usually a bug. |
5 | | - EFailureEncodeFailed = "HTTP_CLIENT_ENCODE_FAILED" |
6 | | - // EFailureConnectionFailed indicates a connection failure on the network level. |
7 | | - EFailureConnectionFailed = "HTTP_CLIENT_CONNECTION_FAILED" |
8 | | - // EFailureDecodeFailed indicates that decoding the JSON response has failed. The status code is set for this |
9 | | - // code. |
10 | | - EFailureDecodeFailed = "HTTP_CLIENT_DECODE_FAILED" |
11 | | - // EClientRedirectsDisabled indicates that ContainerSSH is not following a HTTP redirect sent by the server. |
12 | | - EClientRedirectsDisabled = "HTTP_CLIENT_REDIRECTS_DISABLED" |
| 3 | +// This message indicates that JSON encoding the request failed. This is usually a bug. |
| 4 | +const EFailureEncodeFailed = "HTTP_CLIENT_ENCODE_FAILED" |
13 | 5 |
|
14 | | - // MClientRequest is a message indicating a HTTP request sent from ContainerSSH |
15 | | - MClientRequest = "HTTP_CLIENT_REQUEST" |
| 6 | +// This message indicates a connection failure on the network level. |
| 7 | +const EFailureConnectionFailed = "HTTP_CLIENT_CONNECTION_FAILED" |
16 | 8 |
|
17 | | - // MClientRedirect indicates that the server has sent a HTTP redirect. |
18 | | - MClientRedirect = "HTTP_CLIENT_REDIRECT" |
| 9 | +// This message indicates that decoding the JSON response has failed. The status code is set for this |
| 10 | +// code. |
| 11 | +const EFailureDecodeFailed = "HTTP_CLIENT_DECODE_FAILED" |
19 | 12 |
|
20 | | - // MClientResponse is a message indicating receiving a HTTP response to a client request |
21 | | - MClientResponse = "HTTP_CLIENT_RESPONSE" |
22 | | -) |
| 13 | +// This message indicates that ContainerSSH is not following a HTTP redirect sent by the server. Use the allowRedirects |
| 14 | +// option to allow following HTTP redirects. |
| 15 | +const EClientRedirectsDisabled = "HTTP_CLIENT_REDIRECTS_DISABLED" |
| 16 | + |
| 17 | +// This message indicates that a HTTP request is being sent from ContainerSSH |
| 18 | +const MClientRequest = "HTTP_CLIENT_REQUEST" |
| 19 | + |
| 20 | +// This message indicates that the server responded with a HTTP redirect. |
| 21 | +const MClientRedirect = "HTTP_CLIENT_REDIRECT" |
| 22 | + |
| 23 | +// This message indicates that ContainerSSH received a HTTP response from a server. |
| 24 | +const MClientResponse = "HTTP_CLIENT_RESPONSE" |
0 commit comments