(path string, headers string)
| 119 | } |
| 120 | |
| 121 | func clcl(path string, headers string) string { |
| 122 | httpMethod := "POST" |
| 123 | if Config.Website.Cache.CBisHTTPMethod { |
| 124 | httpMethod = Config.Website.Cache.CBName |
| 125 | } |
| 126 | payload := fmt.Sprintf(""+ |
| 127 | "%s %s HTTP/1.1\r\n"+ // POST /about HTTP/1.1 |
| 128 | "Host: %s\r\n"+ // Host: example.com |
| 129 | "%s"+ // *Additional Headers generated* |
| 130 | "Content-Length: 10\r\n"+ // Content-Length: 10 |
| 131 | "Content-Length: 11\r\n"+ // Content-Length: 11 |
| 132 | "\r\n"+ // |
| 133 | "M\r\n"+ // M |
| 134 | "1\r\n"+ // 1 |
| 135 | "0\r\n"+ // 0 |
| 136 | "X"+ // X |
| 137 | "", httpMethod, path, Config.Website.Url.Host, headers) |
| 138 | |
| 139 | return payload |
| 140 | } |
| 141 | |
| 142 | func clcl2(path string, headers string) string { |
| 143 | httpMethod := "POST" |
no outgoing calls
no test coverage detected