A WIP iOS app for Mastodon and Pleroma.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DelegatingResponse.swift 526B

123456789101112131415161718
  1. //
  2. // DelegatingResponse.swift
  3. // TuskerUITests
  4. //
  5. // Created by Shadowfacts on 12/31/19.
  6. // Copyright © 2019 Shadowfacts. All rights reserved.
  7. //
  8. import Foundation
  9. import Ambassador
  10. struct DelegatingResponse: WebApp {
  11. let handler: (_ environ: [String: Any]) -> WebApp
  12. func app(_ environ: [String : Any], startResponse: @escaping ((String, [(String, String)]) -> Void), sendBody: @escaping ((Data) -> Void)) {
  13. handler(environ).app(environ, startResponse: startResponse, sendBody: sendBody)
  14. }
  15. }