ne_set_request_flag.3 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. '\" t
  2. .\" Title: ne_set_request_flag
  3. .\" Author:
  4. .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
  5. .\" Date: 15 July 2025
  6. .\" Manual: neon API reference
  7. .\" Source: neon 0.35.0
  8. .\" Language: English
  9. .\"
  10. .TH "NE_SET_REQUEST_FLAG" "3" "15 July 2025" "neon 0.35.0" "neon API reference"
  11. .\" -----------------------------------------------------------------
  12. .\" * Define some portability stuff
  13. .\" -----------------------------------------------------------------
  14. .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15. .\" http://bugs.debian.org/507673
  16. .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
  17. .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18. .ie \n(.g .ds Aq \(aq
  19. .el .ds Aq '
  20. .\" -----------------------------------------------------------------
  21. .\" * set default formatting
  22. .\" -----------------------------------------------------------------
  23. .\" disable hyphenation
  24. .nh
  25. .\" disable justification (adjust text to left margin only)
  26. .ad l
  27. .\" -----------------------------------------------------------------
  28. .\" * MAIN CONTENT STARTS HERE *
  29. .\" -----------------------------------------------------------------
  30. .SH "NAME"
  31. ne_set_request_flag, ne_get_request_flag \- set and retrieve per\-request flags
  32. .SH "SYNOPSIS"
  33. .sp
  34. .ft B
  35. .nf
  36. #include <ne_request\&.h>
  37. .fi
  38. .ft
  39. .HP \w'void\ ne_set_request_flag('u
  40. .BI "void ne_set_request_flag(ne_request\ *" "req" ", ne_request_flag\ " "flag" ", int\ " "value" ");"
  41. .HP \w'int\ ne_get_request_flag('u
  42. .BI "int ne_get_request_flag(ne_request\ *" "req" ", ne_request_flag\ " "flag" ");"
  43. .SH "DESCRIPTION"
  44. .PP
  45. The
  46. \fBne_set_request_flag\fR
  47. function enables or disables a per\-request flag\&. Passing a non\-zero
  48. \fIvalue\fR
  49. argument enables the flag, and zero disables it\&.
  50. .PP
  51. The following flags are defined:
  52. .PP
  53. \fBNE_REQFLAG_EXPECT100\fR
  54. .RS 4
  55. enable this flag to use the "Expect: 100\-continue" feature of HTTP/1\&.1, which allows the server to process request headers without reading the entire request body\&. This saves time and bandwidth if the server gives an authentication challenge (requiring the request to be resent), but has interoperability problems with some older servers\&.
  56. .RE
  57. .PP
  58. \fBNE_REQFLAG_IDEMPOTENT\fR
  59. .RS 4
  60. disable this flag if the request uses a non\-idempotent method such as
  61. POST
  62. .RE
  63. .PP
  64. \fBNE_REQFLAG_1XXTIMEOUT\fR (default on)
  65. .RS 4
  66. disable this flag to disable overall timeout when reading interim (1xx) responses;
  67. .RE
  68. .SH "RETURN VALUE"
  69. .PP
  70. The
  71. \fBne_get_request_flag\fR
  72. function returns zero if a flag is disabled, less than zero if the flag is not supported, or greater than zero if the flag is enabled\&.
  73. .SH "SEE ALSO"
  74. .PP
  75. ne_request_create\&.
  76. .SH "COPYRIGHT"
  77. .br
  78. Copyright \(co 2001-2025 Joe Orton
  79. .br