Resource
content-writer
Writer for streaming resource content.
resource content-writer;F check-write
check-write: func() -> result<u64, stream-error>;Check readiness for writing. Returns the number of bytes that can be written without blocking.
F write
write: func(contents: bytes) -> result<_, stream-error>;Continue the contents stream for the in-progress resource.
F close
close: func(options: option<read-resource-result-options>) -> result<_, stream-error>;Finish the contents stream for the in-progress resource.
F send-resource
send-resource: func(id: id, output: output-stream, contents: resource-contents) -> result<_, stream-error>;Write the complete contents of a specific resource to the contents stream and close it.
F open
open: func(id: id, output: output-stream, initial: resource-contents) -> result<_, stream-error>;Start the contents stream for an individual resource.