diff --git a/draft/library/server/request/rest/tests/src/app/app_account_verify_credential.e b/draft/library/server/request/rest/tests/src/app/app_account_verify_credential.e index 59448bee..d87b6683 100644 --- a/draft/library/server/request/rest/tests/src/app/app_account_verify_credential.e +++ b/draft/library/server/request/rest/tests/src/app/app_account_verify_credential.e @@ -48,8 +48,8 @@ feature -- Execution lst: LIST [STRING] do res.set_status_code ({HTTP_STATUS_CODE}.unauthorized) - res.write_header ({HTTP_STATUS_CODE}.unauthorized, <<["WWW-Authenticate", "Basic realm=%"My Silly demo auth, password must be the same as login such as foo:foo%""]>>) - res.write_string ("Unauthorized") + res.put_header ({HTTP_STATUS_CODE}.unauthorized, <<["WWW-Authenticate", "Basic realm=%"My Silly demo auth, password must be the same as login such as foo:foo%""]>>) + res.put_string ("Unauthorized") end execute_application (ctx: APP_REQUEST_HANDLER_CONTEXT; req: WSF_REQUEST; res: WSF_RESPONSE) @@ -88,8 +88,8 @@ feature -- Execution end if not s.is_empty then res.set_status_code ({HTTP_STATUS_CODE}.ok) - res.write_header_text (h.string) - res.write_string (s) + res.put_header_text (h.string) + res.put_string (s) end else send_error (ctx.path, 0, "User/password unknown", Void, ctx, req, res) diff --git a/draft/library/server/request/rest/tests/src/app/app_test.e b/draft/library/server/request/rest/tests/src/app/app_test.e index 75990573..5e6e745b 100644 --- a/draft/library/server/request/rest/tests/src/app/app_test.e +++ b/draft/library/server/request/rest/tests/src/app/app_test.e @@ -80,8 +80,8 @@ feature -- Execution end res.set_status_code (200) - res.write_header_text (h.string) - res.write_string (s) + res.put_header_text (h.string) + res.put_string (s) end note diff --git a/draft/library/server/request/rest/tests/src/app_server.e b/draft/library/server/request/rest/tests/src/app_server.e index 6ca093ad..c5260a82 100644 --- a/draft/library/server/request/rest/tests/src/app_server.e +++ b/draft/library/server/request/rest/tests/src/app_server.e @@ -92,8 +92,8 @@ feature -- Execution s.append ("You are being redirected to /doc in 2 seconds ...%N") h.put_content_length (s.count) res.set_status_code ({HTTP_STATUS_CODE}.temp_redirect) - res.write_header_text (h.string) - res.write_string (s) + res.put_header_text (h.string) + res.put_string (s) end request_count: INTEGER @@ -128,12 +128,12 @@ feature -- Implementation s: STRING do res.set_status_code (200) - res.write_header (200, <<["Content-Type", "text/html"]>>) + res.put_header (200, <<["Content-Type", "text/html"]>>) create s.make_empty s.append_string ("Exited") s.append_string (" start again%N") - res.write_string (s) + res.put_string (s) exit_with_code (0) end