equal
deleted
inserted
replaced
19 |
19 |
20 fun make_header_field (name, value) = concat [name, ": ", value, crlf]; |
20 fun make_header_field (name, value) = concat [name, ": ", value, crlf]; |
21 |
21 |
22 fun reply_header (status, content_type, extra_fields) = |
22 fun reply_header (status, content_type, extra_fields) = |
23 let |
23 let |
24 val code = (Int.toString o HttpStatus.to_status_code) status; |
24 val code = (string_of_int o HttpStatus.to_status_code) status; |
25 val reason = HttpStatus.to_reason status; |
25 val reason = HttpStatus.to_reason status; |
26 val show_content_type = pair "Content-Type" o Mime.show_type; |
26 val show_content_type = pair "Content-Type" o Mime.show_type; |
27 in |
27 in |
28 concat |
28 concat |
29 (map make_header_field |
29 (map make_header_field |