File: expires_parser.xml

package info (click to toggle)
kamailio 5.6.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 68,332 kB
  • sloc: ansic: 744,091; xml: 196,848; cpp: 14,471; makefile: 8,859; sh: 8,814; sql: 7,844; yacc: 3,863; perl: 2,955; python: 2,710; java: 449; javascript: 269; php: 258; ruby: 225; cs: 40; awk: 27
file content (39 lines) | stat: -rw-r--r-- 1,432 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" 
   "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">

<section id="expires_parser" xmlns:xi="http://www.w3.org/2001/XInclude">
    <sectioninfo>
	<revhistory>
	    <revision>
		<revnumber>$Revision$</revnumber>
		<date>$Date$</date>
	    </revision>
	</revhistory>
    </sectioninfo>
    
    <title>Expires HF Body Parser</title>
    <para>
	The parser parses body of Expires header field. The body is very
	simple, it consists of number only.  so the parser only removes any
	leading tabs and spaces and converts the number from string to
	integer. That's it.
    </para>
    <para>
	The parser can be found in file <filename>parse_expires.c</filename>
	under <filename>parser</filename> subdirectory. Main function is
	<function>parse_expires</function>. The function is not called
	automatically when an Expires header field was found. It is up to you
	to call the function if you need the body to be parsed.
    </para>
    <para>
	The function creates a new instance of
	<structname>exp_body_t</structname> structure and calls the parser. If
	everything went OK, pointer to the newly created structure will be
	saved in <structfield>parsed</structfield> field of the
	<structname>hdr_field</structname> structure representing the parsed
	header field.
    </para>

    <xi:include href="exp_body_t.xml"/>
</section>