USING: http http.server math sequences continuations tools.test io.encodings.utf8 io.encodings.binary accessors ; IN: http.server.tests [ t ] [ [ \ + first ] [ <500> ] recover response? ] unit-test [ "text/plain; charset=ASCII" ] [ "text/plain" >>content-type "ASCII" >>content-charset unparse-content-type ] unit-test [ "text/xml; charset=UTF-8" ] [ "text/xml" >>content-type unparse-content-type ] unit-test [ "image/jpeg" ] [ "image/jpeg" >>content-type unparse-content-type ] unit-test [ "application/octet-stream" ] [ unparse-content-type ] unit-test