| ... | @@ -266,8 +266,22 @@ pub const ClientRequest = struct { | ... | @@ -266,8 +266,22 @@ pub const ClientRequest = struct { |
| 266 | } | 266 | } |
| 267 | } | 267 | } |
| 268 | | 268 | |
| | 269 | const R = nio.Readable(@This(), ._var); |
| | 270 | pub const readAll = R.readAll; |
| | 271 | pub const readAtLeast = R.readAtLeast; |
| | 272 | pub const readNoEof = R.readNoEof; |
| | 273 | pub const readAllAlloc = R.readAllAlloc; |
| | 274 | pub const readArray = R.readArray; |
| | 275 | pub const readByte = R.readByte; |
| | 276 | pub const readUntilDelimiterArrayList = R.readUntilDelimiterArrayList; |
| | 277 | pub const readUntilDelimiterAlloc = R.readUntilDelimiterAlloc; |
| | 278 | pub const readUntilDelimitersBuf = R.readUntilDelimitersBuf; |
| | 279 | pub const readUntilDelimitersArrayList = R.readUntilDelimitersArrayList; |
| | 280 | pub const readAlloc = R.readAlloc; |
| | 281 | pub const readInt = R.readInt; |
| | 282 | pub const readUntilDelimitersAlloc = R.readUntilDelimitersAlloc; |
| | 283 | |
| 269 | pub const ReadError = net.Stream.ReadError; | 284 | pub const ReadError = net.Stream.ReadError; |
| 270 | pub usingnamespace nio.Readable(@This(), ._var); | | |
| 271 | pub fn read(req: *ClientRequest, buffer: []u8) ReadError!usize { | 285 | pub fn read(req: *ClientRequest, buffer: []u8) ReadError!usize { |
| 272 | return req.reader.read(buffer); | 286 | return req.reader.read(buffer); |
| 273 | } | 287 | } |