(path string, headers string)
| 100 | } |
| 101 | |
| 102 | func tecl(path string, headers string) string { |
| 103 | httpMethod := "POST" |
| 104 | if Config.Website.Cache.CBisHTTPMethod { |
| 105 | httpMethod = Config.Website.Cache.CBName |
| 106 | } |
| 107 | payload := fmt.Sprintf(""+ |
| 108 | "%s %s HTTP/1.1\r\n"+ // POST /about HTTP/1.1 |
| 109 | "Host: %s\r\n"+ // Host: example.com |
| 110 | "%s"+ // *Additional Headers generated* |
| 111 | "Transfer-Encoding: chunked\r\n"+ // Transfer-Encoding: chunked |
| 112 | "Content-Length: 6\r\n"+ // Content-Length: 6 |
| 113 | "\r\n"+ // |
| 114 | "0\r\n"+ // 0 |
| 115 | "\r\n"+ // |
| 116 | "X"+ // X |
| 117 | "", httpMethod, path, Config.Website.Url.Host, headers) |
| 118 | return payload |
| 119 | } |
| 120 | |
| 121 | func clcl(path string, headers string) string { |
| 122 | httpMethod := "POST" |
no outgoing calls
no test coverage detected