| // Copyright 2016 The Fuchsia Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| library fuchsia.net.oldhttp; | |
| using fuchsia.mem; | |
| using zx; | |
| type URLBody = strict resource union { | |
| /// A socket that will contain the streaming request or response body. | |
| 1: stream zx.handle:SOCKET; | |
| /// A shared buffer that will contain the complete request or response body. | |
| 2: buffer fuchsia.mem.Buffer; | |
| }; |