AK: Remove infallible version of StringBuilder::to_byte_buffer

Also drop the try_ prefix from the fallible function, as it is no longer
needed to distinguish the two.
This commit is contained in:
Linus Groh 2023-03-09 15:00:14 +00:00
commit e76394d96c
Notes: sideshowbarker 2024-07-17 04:09:56 +09:00
13 changed files with 21 additions and 28 deletions

View file

@ -72,7 +72,7 @@ ErrorOr<ByteBuffer> HttpRequest::to_raw_request() const
TRY(builder.try_append((char const*)m_body.data(), m_body.size()));
}
TRY(builder.try_append("\r\n"sv));
return builder.try_to_byte_buffer();
return builder.to_byte_buffer();
}
Optional<HttpRequest> HttpRequest::from_raw_request(ReadonlyBytes raw_request)