15 unsigned Code = Client.responseCode();
16 if (Code && Code != 200)
20 if (!FileStreamOrError)
22 FileStream = std::move(*FileStreamOrError);
24 *FileStream->OS << BodyChunk;
30 return FileStream->commit();
An HTTPResponseHandler that streams the response body to a CachedFileStream.
Lightweight error class with error context and mandatory checking.
static ErrorSuccess success()
Create a success value.
Tagged union holding either a T or a Error.
Error takeError()
Take ownership of the stored error.
Error commit()
Must be called exactly once after the writes have been completed but before the StreamedHTTPResponseH...
Error handleBodyChunk(StringRef BodyChunk) override
Processes an additional chunk of bytes of the HTTP response body.
StringRef - Represent a constant reference to a string, i.e.
This is an optimization pass for GlobalISel generic memory operations.