ne_add_request_header.3 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. '\" t
  2. .\" Title: ne_add_request_header
  3. .\" Author:
  4. .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
  5. .\" Date: 20 September 2021
  6. .\" Manual: neon API reference
  7. .\" Source: neon 0.32.1
  8. .\" Language: English
  9. .\"
  10. .TH "NE_ADD_REQUEST_HEADE" "3" "20 September 2021" "neon 0.32.1" "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_add_request_header, ne_print_request_header \- add headers to a request
  32. .SH "SYNOPSIS"
  33. .sp
  34. .ft B
  35. .nf
  36. #include <ne_request\&.h>
  37. .fi
  38. .ft
  39. .HP \w'void\ ne_add_request_header('u
  40. .BI "void ne_add_request_header(ne_request\ *" "request" ", const\ char\ *" "name" ", const\ char\ *" "value" ");"
  41. .HP \w'void\ ne_print_request_header('u
  42. .BI "void ne_print_request_header(ne_request\ *" "request" ", const\ char\ *" "name" ", const\ char\ *" "format" ", \&.\&.\&.);"
  43. .SH "DESCRIPTION"
  44. .PP
  45. The functions
  46. \fBne_add_request_header\fR
  47. and
  48. \fBne_print_request_header\fR
  49. can be used to add headers to a request, before it is sent\&.
  50. .PP
  51. \fBne_add_request_header\fR
  52. simply adds a header of given
  53. \fIname\fR, with given
  54. \fIvalue\fR\&.
  55. .PP
  56. \fBne_print_request_header\fR
  57. adds a header of given
  58. \fIname\fR, taking the value from the
  59. \fBprintf\fR\-like
  60. \fIformat\fR
  61. string parameter and subsequent variable\-length argument list\&.
  62. .SH "SEE ALSO"
  63. .PP
  64. ne_request_create
  65. .SH "AUTHOR"
  66. .PP
  67. \fBJoe Orton\fR <\&[email protected]\&>
  68. .RS 4
  69. Author.
  70. .RE
  71. .SH "COPYRIGHT"
  72. .br