Handbook
Glossary
parse-content-length-safe ( request -- content-length )
Vocabulary
http
.
server
.
requests
Inputs
request
an
object
Outputs
content-length
an
object
Definition
USING:
http
kernel
math.order
math.parser
namespaces
;
IN:
http.server.requests
:
parse-content-length-safe
( request -- content-length )
"content-length"
header
[
[
string>number
]
[
dup
0
upload-limit
get
between?
[
invalid-content-length
]
unless
]
[
invalid-content-length
]
?if
]
[
content-length-missing
]
if*
;