         try send(response.body)
     }
 
-    func send(body: Response.Body) throws {
+    func send(_ body: Response.Body) throws {
         switch body {
         case .buffer(let data):
             try send(data)
         case .receiver(let receiver):
             while !receiver.closed {
-                let chunk = try receiver.receive(max: Int.max)
+                let chunk = try receiver.receive(upTo: Int.max)
                 try send(chunk)
             }
         case .sender(let closure):

        return try HTTPStreamHeader(stream: self)
    }

    func send(response: Response, keepAlive: Bool) throws {
        let version = response.version
        let status = response.status


        try send(headerLine: "\(key): \(value)")
    }

    func send(_ string: String) throws {
        try send(string.data)
    }

