38 printf(
" version=\"%s\" code=%d willclose=%d reason=\"%s\"\n",
42int main(
int argc,
char **argv)
45 fprintf(stderr,
"usage: %s <status line>...\n", argv[0]);
49 for (
int i = 1;
i < argc;
i++)
#define i(width, name, range_min, range_max)
__device__ int printf(const char *,...)
int ff_http_parse_status_line(void *logctx, const char *line, HTTPStatusLine *st)
Parse the status line of an HTTP response.
Parsed form of a response status line.
int code
response status code
const char * reason
reason phrase, points into the parsed line
int willclose
the version implies the connection will close
char version[4]
protocol version, e.g.
static void test(const char *line)