(socket: Duplex)
| 188 | } |
| 189 | |
| 190 | function socketWriteUnauthorized(socket: Duplex): void { |
| 191 | socket.write('HTTP/1.1 401 Unauthorized\r\nConnection: close\r\n\r\n'); |
| 192 | socket.destroy(); |
| 193 | } |
| 194 | |
| 195 | function socketWriteBadGateway(socket: Duplex): void { |
| 196 | socket.write('HTTP/1.1 502 Bad Gateway\r\nConnection: close\r\n\r\n'); |
no test coverage detected