⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ne_get_status.3

📁 linux subdivision ying gai ke yi le ba
💻 3
字号:
.\"Generated by db2man.xsl. Don't modify this, modify the source..de Sh \" Subsection.br.if t .Sp.ne 5.PP\fB\\$1\fR.PP...de Sp \" Vertical space (when we can't use .PP).if t .sp .5v.if n .sp...de Ip \" List item.br.ie \\n(.$>=3 .ne \\$3.el .ne 3.IP "\\$1" \\$2...TH "NE_GET_STATUS" 3 "5 July 2004" "neon 0.24.7" "neon API reference".SH NAMEne_get_status \- retrieve HTTP response status for request.SH "SYNOPSIS".ad l.hy 0#include <ne_request\&.h>.sp.HP 33const\ ne_status\ *\fBne_get_status\fR\ (const\ ne_request\ *\fIrequest\fR);.ad.hy.SH "DESCRIPTION".PPThe \fBne_get_status\fR function returns a pointer to the HTTP status object giving the result of a request\&. The object returned only becomes valid once the request has been successfully dispatched (the return value of \fBne_request_dispatch\fR or \fBne_begin_request\fR was zero)\&. The object remains valid until the associated request object is destroyed\&..SH "SEE ALSO".PP\fBne_status\fR(3), \fBne_request_create\fR(3).SH "EXAMPLE".PPDisplay the response status code of applying the HEAD method to some resource\&..nfne_request *req = ne_request_create(sess, "HEAD", "/foo/bar");if (ne_request_dispatch(req))   /* handle errors\&.\&.\&. */else   printf("Response status code was %d\\n", ne_get_status(req)\->code);ne_request_destroy(req);.fi.SH AUTHORJoe Orton <neon@webdav\&.org>.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -