| 1111 | */ |
| 1112 | |
| 1113 | size_t /* O - Number of bytes available */ |
| 1114 | httpGetReady(http_t *http) /* I - HTTP connection */ |
| 1115 | { |
| 1116 | if (!http) |
| 1117 | return (0); |
| 1118 | else if (http->used > 0) |
| 1119 | return ((size_t)http->used); |
| 1120 | #ifdef HAVE_TLS |
| 1121 | else if (http->tls) |
| 1122 | return (_httpTLSPending(http)); |
| 1123 | #endif /* HAVE_TLS */ |
| 1124 | |
| 1125 | return (0); |
| 1126 | } |
| 1127 | |
| 1128 | |
| 1129 | /* |
no test coverage detected