PageRenderTime 61ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

/documentation/source/reference/common.rst

http://github.com/dylan-lang/http
ReStructuredText | 1196 lines | 699 code | 497 blank | 0 comment | 0 complexity | 11f68e168d8d443db9ae50a38a7eef00 MD5 | raw file
  1. ***********************
  2. The HTTP-COMMON library
  3. ***********************
  4. .. current-library:: http-common
  5. .. current-module:: http-common
  6. The HTTP-COMMON module
  7. ======================
  8. .. constant:: $application-error
  9. .. constant:: $bad-gateway-error
  10. .. constant:: $bad-header-error
  11. .. constant:: $bad-request-error
  12. .. constant:: $conflict-error
  13. .. constant:: $content-length-required-error
  14. .. constant:: $default-cookie-version
  15. .. constant:: $expectation-failed-error
  16. .. constant:: $forbidden-error
  17. .. constant:: $found-redirect
  18. .. constant:: $gateway-timeout-error
  19. .. constant:: $gone-error
  20. .. constant:: $header-too-large-error
  21. .. constant:: $http-version-not-supported-error
  22. .. constant:: $internal-server-error
  23. .. constant:: $method-not-allowed-error
  24. .. constant:: $mime-wild
  25. .. constant:: $moved-permanently-redirect
  26. .. constant:: $moved-temporarily-redirect
  27. .. constant:: $not-acceptable-error
  28. .. constant:: $not-implemented-error
  29. .. constant:: $not-modified-redirect
  30. .. constant:: $payment-required-error
  31. .. constant:: $precondition-failed-error
  32. .. constant:: $proxy-authentication-required-error
  33. .. constant:: $request-entity-too-large-error
  34. .. constant:: $request-timeout-error
  35. .. constant:: $request-uri-too-long-error
  36. .. constant:: $requested-range-not-satisfiable-error
  37. .. constant:: $resource-not-found-error
  38. .. constant:: $see-other-redirect
  39. .. constant:: $service-unavailable-error
  40. .. constant:: $status-accepted
  41. .. constant:: $status-application-error
  42. .. constant:: $status-bad-gateway
  43. .. constant:: $status-bad-request
  44. .. constant:: $status-conflict
  45. .. constant:: $status-continue
  46. .. constant:: $status-created
  47. .. constant:: $status-expectation-failed
  48. .. constant:: $status-forbidden
  49. .. constant:: $status-found
  50. .. constant:: $status-gateway-timeout
  51. .. constant:: $status-gone
  52. .. constant:: $status-http-version-not-supported
  53. .. constant:: $status-internal-server-error
  54. .. constant:: $status-length-required
  55. .. constant:: $status-method-not-allowed
  56. .. constant:: $status-moved-permanently
  57. .. constant:: $status-multiple-choices
  58. .. constant:: $status-no-content
  59. .. constant:: $status-non-authoritative-information
  60. .. constant:: $status-not-acceptable
  61. .. constant:: $status-not-found
  62. .. constant:: $status-not-implemented
  63. .. constant:: $status-not-modified
  64. .. constant:: $status-ok
  65. .. constant:: $status-partial-content
  66. .. constant:: $status-payment-required
  67. .. constant:: $status-precondition-failed
  68. .. constant:: $status-proxy-authentication-required
  69. .. constant:: $status-request-entity-too-large
  70. .. constant:: $status-request-timeout
  71. .. constant:: $status-request-uri-too-long
  72. .. constant:: $status-requested-range-not-satisfiable
  73. .. constant:: $status-reset-content
  74. .. constant:: $status-see-other
  75. .. constant:: $status-service-unavailable
  76. .. constant:: $status-switching-protocols
  77. .. constant:: $status-temporary-redirect
  78. .. constant:: $status-unauthorized
  79. .. constant:: $status-unsupported-media-type
  80. .. constant:: $status-use-proxy
  81. .. constant:: $unauthorized-error
  82. .. constant:: $unsupported-media-type-error
  83. .. constant:: $use-proxy-redirect
  84. .. variable:: *http-common-log*
  85. .. class:: <application-error>
  86. :superclasses: <http-server-protocol-error>
  87. .. class:: <attributes-mixin>
  88. :open:
  89. :superclasses: <object>
  90. :keyword attributes:
  91. .. class:: <avalue>
  92. :superclasses: <explicit-key-collection>
  93. :keyword alist:
  94. :keyword value:
  95. .. class:: <bad-gateway-error>
  96. :superclasses: <http-server-protocol-error>
  97. .. class:: <bad-header-error>
  98. :superclasses: <http-parse-error>
  99. .. class:: <bad-request-error>
  100. :superclasses: <http-parse-error>
  101. .. class:: <base-http-request>
  102. :open:
  103. :superclasses: <message-headers-mixin>:http-common-internals
  104. :keyword content:
  105. :keyword method:
  106. :keyword raw-url:
  107. :keyword url:
  108. :keyword version:
  109. .. class:: <base-http-response>
  110. :open:
  111. :superclasses: <message-headers-mixin>:http-common-internals
  112. :keyword chunked:
  113. :keyword code:
  114. :keyword reason-phrase:
  115. :keyword request:
  116. .. class:: <chunking-input-stream>
  117. :open:
  118. :superclasses: <wrapper-stream>:streams:io
  119. .. class:: <conflict-error>
  120. :superclasses: <http-client-protocol-error>
  121. .. class:: <content-length-required-error>
  122. :superclasses: <http-client-protocol-error>
  123. .. class:: <expectation-failed-error>
  124. :superclasses: <http-client-protocol-error>
  125. .. class:: <expiring-mixin>
  126. :open:
  127. :superclasses: <object>
  128. :keyword duration:
  129. .. class:: <forbidden-error>
  130. :superclasses: <http-client-protocol-error>
  131. .. class:: <found-redirect>
  132. :superclasses: <http-redirect-condition>
  133. .. class:: <gateway-timeout-error>
  134. :superclasses: <http-server-protocol-error>
  135. .. class:: <gone-error>
  136. :superclasses: <http-client-protocol-error>
  137. .. class:: <header-table>
  138. :superclasses: <table>
  139. .. class:: <header-too-large-error>
  140. :superclasses: <http-client-protocol-error>
  141. .. class:: <http-client-protocol-error>
  142. :superclasses: <http-protocol-condition>
  143. .. class:: <http-error>
  144. :open:
  145. :superclasses: <format-string-condition>:dylan-extensions:dylan, <error>
  146. .. class:: <http-parse-error>
  147. :superclasses: <http-client-protocol-error>
  148. .. class:: <http-protocol-condition>
  149. :open:
  150. :superclasses: <http-error>
  151. :keyword code:
  152. :keyword headers:
  153. .. class:: <http-redirect-condition>
  154. :superclasses: <http-protocol-condition>
  155. .. class:: <http-server-protocol-error>
  156. :superclasses: <http-protocol-condition>
  157. .. class:: <http-version-not-supported-error>
  158. :superclasses: <http-server-protocol-error>
  159. .. class:: <internal-server-error>
  160. :superclasses: <http-server-protocol-error>
  161. .. class:: <media-type>
  162. :superclasses: <attributes-mixin>, <mime-type>:mime:mime
  163. .. class:: <method-not-allowed-error>
  164. :superclasses: <http-client-protocol-error>
  165. .. class:: <moved-permanently-redirect>
  166. :superclasses: <http-redirect-condition>
  167. .. class:: <moved-temporarily-redirect>
  168. :superclasses: <http-redirect-condition>
  169. .. class:: <not-acceptable-error>
  170. :superclasses: <http-client-protocol-error>
  171. .. class:: <not-implemented-error>
  172. :superclasses: <http-server-protocol-error>
  173. .. class:: <not-modified-redirect>
  174. :superclasses: <http-redirect-condition>
  175. .. class:: <payment-required-error>
  176. :superclasses: <http-client-protocol-error>
  177. .. class:: <precondition-failed-error>
  178. :superclasses: <http-client-protocol-error>
  179. .. class:: <proxy-authentication-required-error>
  180. :superclasses: <http-client-protocol-error>
  181. .. class:: <request-entity-too-large-error>
  182. :superclasses: <http-client-protocol-error>
  183. .. class:: <request-timeout-error>
  184. :superclasses: <http-client-protocol-error>
  185. .. class:: <request-uri-too-long-error>
  186. :superclasses: <http-client-protocol-error>
  187. .. class:: <requested-range-not-satisfiable-error>
  188. :superclasses: <http-client-protocol-error>
  189. .. class:: <resource-not-found-error>
  190. :superclasses: <http-client-protocol-error>
  191. .. class:: <see-other-redirect>
  192. :superclasses: <http-redirect-condition>
  193. .. class:: <service-unavailable-error>
  194. :superclasses: <http-server-protocol-error>
  195. .. class:: <unauthorized-error>
  196. :superclasses: <http-client-protocol-error>
  197. .. class:: <unsupported-media-type-error>
  198. :superclasses: <http-client-protocol-error>
  199. .. class:: <use-proxy-redirect>
  200. :superclasses: <http-redirect-condition>
  201. .. function:: application-error
  202. :signature: application-error (#key headers header-name header-value message) => (#rest results)
  203. :parameter #key headers: An instance of ``false-or(<header-table>)``.
  204. :parameter #key header-name: An instance of ``false-or(<string>)``.
  205. :parameter #key header-value: An instance of ``false-or(<string>)``.
  206. :parameter #key message: An instance of ``<object>``.
  207. :value #rest results: An instance of ``<object>``.
  208. .. generic-function:: avalue-alist
  209. :signature: avalue-alist (object) => (#rest results)
  210. :parameter object: An instance of ``<object>``.
  211. :value #rest results: An instance of ``<object>``.
  212. .. generic-function:: avalue-value
  213. :signature: avalue-value (object) => (#rest results)
  214. :parameter object: An instance of ``<object>``.
  215. :value #rest results: An instance of ``<object>``.
  216. .. function:: bad-gateway-error
  217. :signature: bad-gateway-error (#key headers header-name header-value) => (#rest results)
  218. :parameter #key headers: An instance of ``false-or(<header-table>)``.
  219. :parameter #key header-name: An instance of ``false-or(<string>)``.
  220. :parameter #key header-value: An instance of ``false-or(<string>)``.
  221. :value #rest results: An instance of ``<object>``.
  222. .. function:: bad-header-error
  223. :signature: bad-header-error (#key headers header-name header-value message) => (#rest results)
  224. :parameter #key headers: An instance of ``false-or(<header-table>)``.
  225. :parameter #key header-name: An instance of ``false-or(<string>)``.
  226. :parameter #key header-value: An instance of ``false-or(<string>)``.
  227. :parameter #key message: An instance of ``<object>``.
  228. :value #rest results: An instance of ``<object>``.
  229. .. function:: bad-request-error
  230. :signature: bad-request-error (#key headers header-name header-value reason) => (#rest results)
  231. :parameter #key headers: An instance of ``false-or(<header-table>)``.
  232. :parameter #key header-name: An instance of ``false-or(<string>)``.
  233. :parameter #key header-value: An instance of ``false-or(<string>)``.
  234. :parameter #key reason: An instance of ``<object>``.
  235. :value #rest results: An instance of ``<object>``.
  236. .. generic-function:: chunked-transfer-encoding?
  237. :signature: chunked-transfer-encoding? (headers) => (#rest results)
  238. :parameter headers: An instance of ``<object>``.
  239. :value #rest results: An instance of ``<object>``.
  240. .. function:: condition-class-for-status-code
  241. :signature: condition-class-for-status-code (code) => (class)
  242. :parameter code: An instance of ``<integer>``.
  243. :value class: An instance of ``<class>``.
  244. .. function:: conflict-error
  245. :signature: conflict-error (#key headers header-name header-value) => (#rest results)
  246. :parameter #key headers: An instance of ``false-or(<header-table>)``.
  247. :parameter #key header-name: An instance of ``false-or(<string>)``.
  248. :parameter #key header-value: An instance of ``false-or(<string>)``.
  249. :value #rest results: An instance of ``<object>``.
  250. .. generic-function:: content-length
  251. :open:
  252. :signature: content-length (object) => (length)
  253. :parameter object: An instance of ``<object>``.
  254. :value length: An instance of ``false-or(<integer>)``.
  255. .. function:: content-length-required-error
  256. :signature: content-length-required-error (#key headers header-name header-value) => (#rest results)
  257. :parameter #key headers: An instance of ``false-or(<header-table>)``.
  258. :parameter #key header-name: An instance of ``false-or(<string>)``.
  259. :parameter #key header-value: An instance of ``false-or(<string>)``.
  260. :value #rest results: An instance of ``<object>``.
  261. .. generic-function:: cookie-comment
  262. :signature: cookie-comment (object) => (#rest results)
  263. :parameter object: An instance of ``<object>``.
  264. :value #rest results: An instance of ``<object>``.
  265. .. generic-function:: cookie-domain
  266. :signature: cookie-domain (object) => (#rest results)
  267. :parameter object: An instance of ``<object>``.
  268. :value #rest results: An instance of ``<object>``.
  269. .. generic-function:: cookie-max-age
  270. :signature: cookie-max-age (object) => (#rest results)
  271. :parameter object: An instance of ``<object>``.
  272. :value #rest results: An instance of ``<object>``.
  273. .. generic-function:: cookie-name
  274. :signature: cookie-name (object) => (#rest results)
  275. :parameter object: An instance of ``<object>``.
  276. :value #rest results: An instance of ``<object>``.
  277. .. generic-function:: cookie-path
  278. :signature: cookie-path (object) => (#rest results)
  279. :parameter object: An instance of ``<object>``.
  280. :value #rest results: An instance of ``<object>``.
  281. .. generic-function:: cookie-value
  282. :signature: cookie-value (object) => (#rest results)
  283. :parameter object: An instance of ``<object>``.
  284. :value #rest results: An instance of ``<object>``.
  285. .. generic-function:: cookie-version
  286. :signature: cookie-version (object) => (#rest results)
  287. :parameter object: An instance of ``<object>``.
  288. :value #rest results: An instance of ``<object>``.
  289. .. generic-function:: date-modified
  290. :open:
  291. :signature: date-modified (object) => (date)
  292. :parameter object: An instance of ``<object>``.
  293. :value date: An instance of ``false-or(<date>)``.
  294. .. generic-function:: date-modified-setter
  295. :open:
  296. :signature: date-modified-setter (new-date object) => (new-date)
  297. :parameter new-date: An instance of ``false-or(<date>)``.
  298. :parameter object: An instance of ``<object>``.
  299. :value new-date: An instance of ``false-or(<date>)``.
  300. .. function:: expectation-failed-error
  301. :signature: expectation-failed-error (#key headers header-name header-value) => (#rest results)
  302. :parameter #key headers: An instance of ``false-or(<header-table>)``.
  303. :parameter #key header-name: An instance of ``false-or(<string>)``.
  304. :parameter #key header-value: An instance of ``false-or(<string>)``.
  305. :value #rest results: An instance of ``<object>``.
  306. .. generic-function:: expired?
  307. :signature: expired? (thing) => (#rest results)
  308. :parameter thing: An instance of ``<object>``.
  309. :value #rest results: An instance of ``<object>``.
  310. .. function:: forbidden-error
  311. :signature: forbidden-error (#key headers header-name header-value) => (#rest results)
  312. :parameter #key headers: An instance of ``false-or(<header-table>)``.
  313. :parameter #key header-name: An instance of ``false-or(<string>)``.
  314. :parameter #key header-value: An instance of ``false-or(<string>)``.
  315. :value #rest results: An instance of ``<object>``.
  316. .. function:: found-redirect
  317. :signature: found-redirect (#key headers header-name header-value location) => (#rest results)
  318. :parameter #key headers: An instance of ``false-or(<header-table>)``.
  319. :parameter #key header-name: An instance of ``false-or(<string>)``.
  320. :parameter #key header-value: An instance of ``false-or(<string>)``.
  321. :parameter #key location: An instance of ``<object>``.
  322. :value #rest results: An instance of ``<object>``.
  323. .. function:: gateway-timeout-error
  324. :signature: gateway-timeout-error (#key headers header-name header-value) => (#rest results)
  325. :parameter #key headers: An instance of ``false-or(<header-table>)``.
  326. :parameter #key header-name: An instance of ``false-or(<string>)``.
  327. :parameter #key header-value: An instance of ``false-or(<string>)``.
  328. :value #rest results: An instance of ``<object>``.
  329. .. generic-function:: get-attribute
  330. :signature: get-attribute (this key) => (value)
  331. :parameter this: An instance of ``<attributes-mixin>``.
  332. :parameter key: An instance of ``<string>``.
  333. :value value: An instance of ``<object>``.
  334. .. generic-function:: get-header
  335. :open:
  336. :signature: get-header (object header-name #key parsed) => (header-value)
  337. :parameter object: An instance of ``<object>``.
  338. :parameter header-name: An instance of ``<byte-string>``.
  339. :parameter #key parsed: An instance of ``<boolean>``.
  340. :value header-value: An instance of ``<object>``.
  341. .. function:: gone-error
  342. :signature: gone-error (#key headers header-name header-value) => (#rest results)
  343. :parameter #key headers: An instance of ``false-or(<header-table>)``.
  344. :parameter #key header-name: An instance of ``false-or(<string>)``.
  345. :parameter #key header-value: An instance of ``false-or(<string>)``.
  346. :value #rest results: An instance of ``<object>``.
  347. .. function:: grow-header-buffer
  348. :signature: grow-header-buffer (old len) => (#rest results)
  349. :parameter old: An instance of ``<byte-string>``.
  350. :parameter len: An instance of ``<integer>``.
  351. :value #rest results: An instance of ``<object>``.
  352. .. generic-function:: has-attribute?
  353. :signature: has-attribute? (this key) => (has-it?)
  354. :parameter this: An instance of ``<attributes-mixin>``.
  355. :parameter key: An instance of ``<string>``.
  356. :value has-it?: An instance of ``<boolean>``.
  357. .. function:: header-too-large-error
  358. :signature: header-too-large-error (#key headers header-name header-value max-size) => (#rest results)
  359. :parameter #key headers: An instance of ``false-or(<header-table>)``.
  360. :parameter #key header-name: An instance of ``false-or(<string>)``.
  361. :parameter #key header-value: An instance of ``false-or(<string>)``.
  362. :parameter #key max-size: An instance of ``<object>``.
  363. :value #rest results: An instance of ``<object>``.
  364. .. generic-function:: http-error-headers
  365. :signature: http-error-headers (error) => (headers)
  366. :parameter error: An instance of ``<error>``.
  367. :value headers: An instance of ``false-or(<header-table>)``.
  368. .. generic-function:: http-error-message-no-code
  369. :signature: http-error-message-no-code (error) => (#rest results)
  370. :parameter error: An instance of ``<object>``.
  371. :value #rest results: An instance of ``<object>``.
  372. .. generic-function:: http-status-code
  373. :signature: http-status-code (error) => (code)
  374. :parameter error: An instance of ``<error>``.
  375. :value code: An instance of ``<integer>``.
  376. .. function:: http-version-not-supported-error
  377. :signature: http-version-not-supported-error (#key headers header-name header-value version) => (#rest results)
  378. :parameter #key headers: An instance of ``false-or(<header-table>)``.
  379. :parameter #key header-name: An instance of ``false-or(<string>)``.
  380. :parameter #key header-value: An instance of ``false-or(<string>)``.
  381. :parameter #key version: An instance of ``<object>``.
  382. :value #rest results: An instance of ``<object>``.
  383. .. function:: internal-server-error
  384. :signature: internal-server-error (#key headers header-name header-value) => (#rest results)
  385. :parameter #key headers: An instance of ``false-or(<header-table>)``.
  386. :parameter #key header-name: An instance of ``false-or(<string>)``.
  387. :parameter #key header-value: An instance of ``false-or(<string>)``.
  388. :value #rest results: An instance of ``<object>``.
  389. .. generic-function:: match-media-types
  390. :signature: match-media-types (type1 type2) => (#rest results)
  391. :parameter type1: An instance of ``<object>``.
  392. :parameter type2: An instance of ``<object>``.
  393. :value #rest results: An instance of ``<object>``.
  394. .. generic-function:: media-type-exact?
  395. :signature: media-type-exact? (mr) => (#rest results)
  396. :parameter mr: An instance of ``<object>``.
  397. :value #rest results: An instance of ``<object>``.
  398. .. generic-function:: media-type-level
  399. :signature: media-type-level (media-type) => (#rest results)
  400. :parameter media-type: An instance of ``<object>``.
  401. :value #rest results: An instance of ``<object>``.
  402. .. generic-function:: media-type-more-specific?
  403. :signature: media-type-more-specific? (type1 type2) => (#rest results)
  404. :parameter type1: An instance of ``<object>``.
  405. :parameter type2: An instance of ``<object>``.
  406. :value #rest results: An instance of ``<object>``.
  407. .. generic-function:: media-type-quality
  408. :signature: media-type-quality (media-type) => (#rest results)
  409. :parameter media-type: An instance of ``<object>``.
  410. :value #rest results: An instance of ``<object>``.
  411. .. function:: method-not-allowed-error
  412. :signature: method-not-allowed-error (#key headers header-name header-value request-method) => (#rest results)
  413. :parameter #key headers: An instance of ``false-or(<header-table>)``.
  414. :parameter #key header-name: An instance of ``false-or(<string>)``.
  415. :parameter #key header-value: An instance of ``false-or(<string>)``.
  416. :parameter #key request-method: An instance of ``<object>``.
  417. :value #rest results: An instance of ``<object>``.
  418. .. function:: moved-permanently-redirect
  419. :signature: moved-permanently-redirect (#key headers header-name header-value location) => (#rest results)
  420. :parameter #key headers: An instance of ``false-or(<header-table>)``.
  421. :parameter #key header-name: An instance of ``false-or(<string>)``.
  422. :parameter #key header-value: An instance of ``false-or(<string>)``.
  423. :parameter #key location: An instance of ``<object>``.
  424. :value #rest results: An instance of ``<object>``.
  425. .. function:: moved-temporarily-redirect
  426. :signature: moved-temporarily-redirect (#key headers header-name header-value location) => (#rest results)
  427. :parameter #key headers: An instance of ``false-or(<header-table>)``.
  428. :parameter #key header-name: An instance of ``false-or(<string>)``.
  429. :parameter #key header-value: An instance of ``false-or(<string>)``.
  430. :parameter #key location: An instance of ``<object>``.
  431. :value #rest results: An instance of ``<object>``.
  432. .. function:: not-acceptable-error
  433. :signature: not-acceptable-error (#key headers header-name header-value) => (#rest results)
  434. :parameter #key headers: An instance of ``false-or(<header-table>)``.
  435. :parameter #key header-name: An instance of ``false-or(<string>)``.
  436. :parameter #key header-value: An instance of ``false-or(<string>)``.
  437. :value #rest results: An instance of ``<object>``.
  438. .. function:: not-implemented-error
  439. :signature: not-implemented-error (#key headers header-name header-value what) => (#rest results)
  440. :parameter #key headers: An instance of ``false-or(<header-table>)``.
  441. :parameter #key header-name: An instance of ``false-or(<string>)``.
  442. :parameter #key header-value: An instance of ``false-or(<string>)``.
  443. :parameter #key what: An instance of ``<object>``.
  444. :value #rest results: An instance of ``<object>``.
  445. .. function:: not-modified-redirect
  446. :signature: not-modified-redirect (#key headers header-name header-value) => (#rest results)
  447. :parameter #key headers: An instance of ``false-or(<header-table>)``.
  448. :parameter #key header-name: An instance of ``false-or(<string>)``.
  449. :parameter #key header-value: An instance of ``false-or(<string>)``.
  450. :value #rest results: An instance of ``<object>``.
  451. .. generic-function:: note-bytes-received
  452. :open:
  453. :signature: note-bytes-received (stream byte-count) => (#rest results)
  454. :parameter stream: An instance of ``<chunking-input-stream>``.
  455. :parameter byte-count: An instance of ``<integer>``.
  456. :value #rest results: An instance of ``<object>``.
  457. .. generic-function:: parse-header-value
  458. :open:
  459. :signature: parse-header-value (field-name field-values) => (parsed-field-value)
  460. :parameter field-name: An instance of ``<symbol>``.
  461. :parameter field-values: An instance of ``<field-type>:http-common-internals``.
  462. :value parsed-field-value: An instance of ``<object>``.
  463. .. function:: parse-http-date
  464. :signature: parse-http-date (str bpos epos) => (date)
  465. :parameter str: An instance of ``<byte-string>``.
  466. :parameter bpos: An instance of ``<integer>``.
  467. :parameter epos: An instance of ``<integer>``.
  468. :value date: An instance of ``false-or(<date>)``.
  469. .. generic-function:: parsed-headers
  470. :signature: parsed-headers (object) => (#rest results)
  471. :parameter object: An instance of ``<object>``.
  472. :value #rest results: An instance of ``<object>``.
  473. .. function:: payment-required-error
  474. :signature: payment-required-error (#key headers header-name header-value) => (#rest results)
  475. :parameter #key headers: An instance of ``false-or(<header-table>)``.
  476. :parameter #key header-name: An instance of ``false-or(<string>)``.
  477. :parameter #key header-value: An instance of ``false-or(<string>)``.
  478. :value #rest results: An instance of ``<object>``.
  479. .. function:: precondition-failed-error
  480. :signature: precondition-failed-error (#key headers header-name header-value) => (#rest results)
  481. :parameter #key headers: An instance of ``false-or(<header-table>)``.
  482. :parameter #key header-name: An instance of ``false-or(<string>)``.
  483. :parameter #key header-value: An instance of ``false-or(<string>)``.
  484. :value #rest results: An instance of ``<object>``.
  485. .. function:: proxy-authentication-required-error
  486. :signature: proxy-authentication-required-error (#key headers header-name header-value) => (#rest results)
  487. :parameter #key headers: An instance of ``false-or(<header-table>)``.
  488. :parameter #key header-name: An instance of ``false-or(<string>)``.
  489. :parameter #key header-value: An instance of ``false-or(<string>)``.
  490. :value #rest results: An instance of ``<object>``.
  491. .. function:: quote-html
  492. :signature: quote-html (text #key stream) => (#rest results)
  493. :parameter text: An instance of ``<string>``.
  494. :parameter #key stream: An instance of ``<object>``.
  495. :value #rest results: An instance of ``<object>``.
  496. .. generic-function:: raw-headers
  497. :signature: raw-headers (object) => (#rest results)
  498. :parameter object: An instance of ``<object>``.
  499. :value #rest results: An instance of ``<object>``.
  500. .. function:: read-header-line
  501. :signature: read-header-line (stream buffer bpos peek-ch require-crlf?) => (buffer bpos epos peek-ch)
  502. :parameter stream: An instance of ``<stream>:common-extensions:common-dylan``.
  503. :parameter buffer: An instance of ``<byte-string>``.
  504. :parameter bpos: An instance of ``<integer>``.
  505. :parameter peek-ch: An instance of ``false-or(<byte-character>)``.
  506. :parameter require-crlf?: An instance of ``<boolean>``.
  507. :value buffer: An instance of ``<byte-string>``.
  508. :value bpos: An instance of ``<integer>``.
  509. :value epos: An instance of ``<integer>``.
  510. :value peek-ch: An instance of ``false-or(<byte-character>)``.
  511. .. generic-function:: read-http-line
  512. :signature: read-http-line (stream) => (#rest results)
  513. :parameter stream: An instance of ``<object>``.
  514. :value #rest results: An instance of ``<object>``.
  515. .. function:: read-message-headers
  516. :signature: read-message-headers (stream #key buffer start headers require-crlf?) => (headers buffer epos)
  517. :parameter stream: An instance of ``<stream>:common-extensions:common-dylan``.
  518. :parameter #key buffer: An instance of ``<byte-string>``.
  519. :parameter #key start: An instance of ``<integer>``.
  520. :parameter #key headers: An instance of ``<header-table>``.
  521. :parameter #key require-crlf?: An instance of ``<boolean>``.
  522. :value headers: An instance of ``<header-table>``.
  523. :value buffer: An instance of ``<byte-string>``.
  524. :value epos: An instance of ``<integer>``.
  525. .. generic-function:: remove-attribute
  526. :signature: remove-attribute (this key) => (#rest results)
  527. :parameter this: An instance of ``<attributes-mixin>``.
  528. :parameter key: An instance of ``<string>``.
  529. :value #rest results: An instance of ``<object>``.
  530. .. generic-function:: request-content
  531. :signature: request-content (object) => (#rest results)
  532. :parameter object: An instance of ``<object>``.
  533. :value #rest results: An instance of ``<object>``.
  534. .. generic-function:: request-content-setter
  535. :signature: request-content-setter (value object) => (#rest results)
  536. :parameter value: An instance of ``<object>``.
  537. :parameter object: An instance of ``<object>``.
  538. :value #rest results: An instance of ``<object>``.
  539. .. function:: request-entity-too-large-error
  540. :signature: request-entity-too-large-error (#key headers header-name header-value max-size) => (#rest results)
  541. :parameter #key headers: An instance of ``false-or(<header-table>)``.
  542. :parameter #key header-name: An instance of ``false-or(<string>)``.
  543. :parameter #key header-value: An instance of ``false-or(<string>)``.
  544. :parameter #key max-size: An instance of ``<object>``.
  545. :value #rest results: An instance of ``<object>``.
  546. .. generic-function:: request-method
  547. :signature: request-method (object) => (#rest results)
  548. :parameter object: An instance of ``<object>``.
  549. :value #rest results: An instance of ``<object>``.
  550. .. generic-function:: request-method-setter
  551. :signature: request-method-setter (value object) => (#rest results)
  552. :parameter value: An instance of ``<object>``.
  553. :parameter object: An instance of ``<object>``.
  554. :value #rest results: An instance of ``<object>``.
  555. .. generic-function:: request-raw-url-string
  556. :signature: request-raw-url-string (object) => (#rest results)
  557. :parameter object: An instance of ``<object>``.
  558. :value #rest results: An instance of ``<object>``.
  559. .. generic-function:: request-raw-url-string-setter
  560. :signature: request-raw-url-string-setter (value object) => (#rest results)
  561. :parameter value: An instance of ``<object>``.
  562. :parameter object: An instance of ``<object>``.
  563. :value #rest results: An instance of ``<object>``.
  564. .. function:: request-timeout-error
  565. :signature: request-timeout-error (#key headers header-name header-value seconds) => (#rest results)
  566. :parameter #key headers: An instance of ``false-or(<header-table>)``.
  567. :parameter #key header-name: An instance of ``false-or(<string>)``.
  568. :parameter #key header-value: An instance of ``false-or(<string>)``.
  569. :parameter #key seconds: An instance of ``<object>``.
  570. :value #rest results: An instance of ``<object>``.
  571. .. function:: request-uri-too-long-error
  572. :signature: request-uri-too-long-error (#key headers header-name header-value max-size) => (#rest results)
  573. :parameter #key headers: An instance of ``false-or(<header-table>)``.
  574. :parameter #key header-name: An instance of ``false-or(<string>)``.
  575. :parameter #key header-value: An instance of ``false-or(<string>)``.
  576. :parameter #key max-size: An instance of ``<object>``.
  577. :value #rest results: An instance of ``<object>``.
  578. .. generic-function:: request-url
  579. :signature: request-url (object) => (#rest results)
  580. :parameter object: An instance of ``<object>``.
  581. :value #rest results: An instance of ``<object>``.
  582. .. generic-function:: request-url-setter
  583. :signature: request-url-setter (value object) => (#rest results)
  584. :parameter value: An instance of ``<object>``.
  585. :parameter object: An instance of ``<object>``.
  586. :value #rest results: An instance of ``<object>``.
  587. .. generic-function:: request-version
  588. :signature: request-version (object) => (#rest results)
  589. :parameter object: An instance of ``<object>``.
  590. :value #rest results: An instance of ``<object>``.
  591. .. generic-function:: request-version-setter
  592. :signature: request-version-setter (value object) => (#rest results)
  593. :parameter value: An instance of ``<object>``.
  594. :parameter object: An instance of ``<object>``.
  595. :value #rest results: An instance of ``<object>``.
  596. .. function:: requested-range-not-satisfiable-error
  597. :signature: requested-range-not-satisfiable-error (#key headers header-name header-value) => (#rest results)
  598. :parameter #key headers: An instance of ``false-or(<header-table>)``.
  599. :parameter #key header-name: An instance of ``false-or(<string>)``.
  600. :parameter #key header-value: An instance of ``false-or(<string>)``.
  601. :value #rest results: An instance of ``<object>``.
  602. .. function:: resource-not-found-error
  603. :signature: resource-not-found-error (#key headers header-name header-value url) => (#rest results)
  604. :parameter #key headers: An instance of ``false-or(<header-table>)``.
  605. :parameter #key header-name: An instance of ``false-or(<string>)``.
  606. :parameter #key header-value: An instance of ``false-or(<string>)``.
  607. :parameter #key url: An instance of ``<object>``.
  608. :value #rest results: An instance of ``<object>``.
  609. .. generic-function:: response-chunked?
  610. :signature: response-chunked? (object) => (#rest results)
  611. :parameter object: An instance of ``<object>``.
  612. :value #rest results: An instance of ``<object>``.
  613. .. generic-function:: response-chunked?-setter
  614. :signature: response-chunked?-setter (value object) => (#rest results)
  615. :parameter value: An instance of ``<object>``.
  616. :parameter object: An instance of ``<object>``.
  617. :value #rest results: An instance of ``<object>``.
  618. .. generic-function:: response-code
  619. :signature: response-code (object) => (#rest results)
  620. :parameter object: An instance of ``<object>``.
  621. :value #rest results: An instance of ``<object>``.
  622. .. generic-function:: response-code-setter
  623. :signature: response-code-setter (value object) => (#rest results)
  624. :parameter value: An instance of ``<object>``.
  625. :parameter object: An instance of ``<object>``.
  626. :value #rest results: An instance of ``<object>``.
  627. .. generic-function:: response-reason-phrase
  628. :signature: response-reason-phrase (object) => (#rest results)
  629. :parameter object: An instance of ``<object>``.
  630. :value #rest results: An instance of ``<object>``.
  631. .. generic-function:: response-reason-phrase-setter
  632. :signature: response-reason-phrase-setter (value object) => (#rest results)
  633. :parameter value: An instance of ``<object>``.
  634. :parameter object: An instance of ``<object>``.
  635. :value #rest results: An instance of ``<object>``.
  636. .. generic-function:: response-request
  637. :signature: response-request (object) => (#rest results)
  638. :parameter object: An instance of ``<object>``.
  639. :value #rest results: An instance of ``<object>``.
  640. .. function:: see-other-redirect
  641. :signature: see-other-redirect (#key headers header-name header-value location) => (#rest results)
  642. :parameter #key headers: An instance of ``false-or(<header-table>)``.
  643. :parameter #key header-name: An instance of ``false-or(<string>)``.
  644. :parameter #key header-value: An instance of ``false-or(<string>)``.
  645. :parameter #key location: An instance of ``<object>``.
  646. :value #rest results: An instance of ``<object>``.
  647. .. function:: service-unavailable-error
  648. :signature: service-unavailable-error (#key headers header-name header-value) => (#rest results)
  649. :parameter #key headers: An instance of ``false-or(<header-table>)``.
  650. :parameter #key header-name: An instance of ``false-or(<string>)``.
  651. :parameter #key header-value: An instance of ``false-or(<string>)``.
  652. :value #rest results: An instance of ``<object>``.
  653. .. generic-function:: set-attribute
  654. :signature: set-attribute (this key value) => (#rest results)
  655. :parameter this: An instance of ``<attributes-mixin>``.
  656. :parameter key: An instance of ``<string>``.
  657. :parameter value: An instance of ``<object>``.
  658. :value #rest results: An instance of ``<object>``.
  659. .. generic-function:: set-header
  660. :open:
  661. :signature: set-header (object header value #key if-exists?) => (#rest results)
  662. :parameter object: An instance of ``<object>``.
  663. :parameter header: An instance of ``<byte-string>``.
  664. :parameter value: An instance of ``<object>``.
  665. :parameter #key if-exists?: An instance of ``one-of(#"replace", #"append", #"ignore", #"error")``.
  666. :value #rest results: An instance of ``<object>``.
  667. .. function:: token-end-position
  668. :signature: token-end-position (buf bpos epos) => (#rest results)
  669. :parameter buf: An instance of ``<byte-string>``.
  670. :parameter bpos: An instance of ``<integer>``.
  671. :parameter epos: An instance of ``<integer>``.
  672. :value #rest results: An instance of ``<object>``.
  673. .. function:: unauthorized-error
  674. :signature: unauthorized-error (#key headers header-name header-value) => (#rest results)
  675. :parameter #key headers: An instance of ``false-or(<header-table>)``.
  676. :parameter #key header-name: An instance of ``false-or(<string>)``.
  677. :parameter #key header-value: An instance of ``false-or(<string>)``.
  678. :value #rest results: An instance of ``<object>``.
  679. .. function:: unsupported-media-type-error
  680. :signature: unsupported-media-type-error (#key headers header-name header-value) => (#rest results)
  681. :parameter #key headers: An instance of ``false-or(<header-table>)``.
  682. :parameter #key header-name: An instance of ``false-or(<string>)``.
  683. :parameter #key header-value: An instance of ``false-or(<string>)``.
  684. :value #rest results: An instance of ``<object>``.
  685. .. function:: use-proxy-redirect
  686. :signature: use-proxy-redirect (#key headers header-name header-value location) => (#rest results)
  687. :parameter #key headers: An instance of ``false-or(<header-table>)``.
  688. :parameter #key header-name: An instance of ``false-or(<string>)``.
  689. :parameter #key header-value: An instance of ``false-or(<string>)``.
  690. :parameter #key location: An instance of ``<object>``.
  691. :value #rest results: An instance of ``<object>``.
  692. .. generic-function:: validate-http-status-code
  693. :signature: validate-http-status-code (status-code) => (#rest results)
  694. :parameter status-code: An instance of ``<object>``.
  695. :value #rest results: An instance of ``<object>``.
  696. .. generic-function:: validate-http-version
  697. :signature: validate-http-version (version) => (#rest results)
  698. :parameter version: An instance of ``<object>``.
  699. :value #rest results: An instance of ``<object>``.