File: headers.tld

package info (click to toggle)
lua-http 0.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,100 kB
  • sloc: makefile: 60; sh: 16
file content (17 lines) | stat: -rw-r--r-- 687 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
interface headers
	const clone: (self) -> (headers)
	const append: (self, string, string, boolean?) -> ()
	const each: (self) -> ((self) -> (string, string, boolean))
	const has: (self, string) -> (boolean)
	const delete: (self, string) -> (boolean)
	const geti: (self, integer) -> (string, string, boolean)
	const get_as_sequence: (self, string) -> ({"n": integer, integer:string})
	const get: (self, string) -> (string*)
	const get_comma_separated: (self, string) -> (string|nil)
	const modifyi: (self, integer, string, boolean?) -> ()
	const upsert: (self, string, string, boolean?) -> ()
	const sort: (self) -> ()
	const dump: (self, file?, string?) -> ()
end

new : () -> (headers)