1. 29 1月, 2021 1 次提交
  2. 27 1月, 2021 1 次提交
  3. 25 1月, 2021 1 次提交
  4. 22 1月, 2021 2 次提交
  5. 12 1月, 2021 1 次提交
  6. 08 1月, 2021 1 次提交
  7. 07 1月, 2021 1 次提交
  8. 15 12月, 2020 2 次提交
  9. 11 12月, 2020 2 次提交
  10. 06 12月, 2020 1 次提交
  11. 28 11月, 2020 1 次提交
    • N
      Rework 'SessionData' to be more friendly to 2nd party devs (#2535) · 2b222a63
      Nathan Harris 提交于
      As reported by #2480, right now `SessionData` is a public type without much use to developers to write middleware, algorithms, etc. on top of due to how strongly the storage is encapsulated.
      
      `SessionData` has been changed as follows:
      
      - Now conforms to `Equatable` and `ExpressibleByDictionaryLiteral`
      - A new `snapshot` computed property is available to get a copy of its storage
      - `init(_:)` is now deprecated in favor of `init(initialData:)`
      
      ```swift
      let data: SessionData = ["name": "Vapor"]
      // creates a copy of the data as of this point
      let snapshot = data.snapshot
      client.storeUsingDictionary(snapshot)
      ```
      2b222a63
  12. 16 11月, 2020 1 次提交
  13. 03 11月, 2020 1 次提交
  14. 02 11月, 2020 1 次提交
  15. 29 10月, 2020 1 次提交
  16. 27 10月, 2020 2 次提交
  17. 26 10月, 2020 1 次提交
  18. 10 10月, 2020 2 次提交
  19. 07 10月, 2020 1 次提交
  20. 06 10月, 2020 1 次提交
  21. 03 10月, 2020 1 次提交
    • C
      OTP implementation (#2499) · 2fba43f5
      Craz1k0ek 提交于
      * OTP implementations
      
      * Added HOTP and TOTP implementations
      * Added HOTP adn TOTP tests
      
      * Cleanup
      
      + Cleaned up some of the leftover code.
      
      * Import fixed
      
      * Fixed an issue with an invalid import of Crypto
      
      * Fixed another import
      
      * Fixed another import issue in the implementation
      
      * Swift 5.2 support
      
      * Updated the code to (hopefully) support Swift 5.2
      
      * Consistency
      
      * Moved a parameter around for a more consistent structure
      
      * Updated OTP API
      
      * Made the init public
      * Removed the static 'initializers'
      * Updated tests to support new API
      
      * Style guide conformance
      
      * Added the style guide conformance to function indentation
      2fba43f5
  22. 01 10月, 2020 2 次提交
    • J
      Add static dotenv loading function that can be used outside of Application (#2497) · fbf36940
      Jaap Wijnen 提交于
      - DotEnv files can be loaded before initializing application
      - Reduces boilerplate code when you want to bootstrap logging with environment variables loaded from a .env file 
      - Can be loaded in similar fashion as `Application` or provide absolute and relative .env file locations using `DotEnvFile.load(path: ...)`
      
      ```swift
      let env = try Environment.detect()
      DotEnvFile.load(for: env)
      LoggingSystem.bootstrap { label in 
         // use environment variables here (before application is initialized)
      }
      let app = Application(env)
      ```
      fbf36940
    • T
      fix relative percent decoding in file middleware (#2500) · cf1651f7
      Tanner 提交于
      cf1651f7
  23. 24 9月, 2020 1 次提交
  24. 21 9月, 2020 1 次提交
  25. 27 8月, 2020 1 次提交
  26. 20 8月, 2020 1 次提交
    • D
      Support for Unix Domain Sockets (#2471) · d910be46
      Dimitri Bouniol 提交于
      * Added socket path to the HTTPServer.Configuration
      
      * Updated the HTTPServerConnection start() method to bind to a socket file if one is provided
      
      * Refactored the Server start() methods to allow starting a server with a socket path as opposed to a hostname and port
      
      * Fixed an issue where the server could not be started if the socket file wasn't removed beforehand
      
      * Added an option to serve an instance via `swift run Run serve` using a unix-socket
      
      * Added an extension to URI that encodes socket paths in a way AsyncHTTPClient is happy with
      
      * Updated the EventLoopHTTPClient to decode socket path URIs so they may be used for testing
      
      * Refactored socket file checking code to be more versatile
      Co-Authored-By: NGwynne Raskind <gwynne@users.noreply.github.com>
      
      * Removed an unnecessary check for the socket path option
      
      * Removed unnecessary URL handling code now that AsyncHTTPClient supports http+unix URLs directly
      
      * Removed socket file handling code in favor of NIO handling it natively
      
      * Added additional checks to ensure only valid combinations of options are used when starting up
      
      * Renamed the convenience initializer for creating URIs that bind to unic domain socket paths
      
      * Refactored server start methods to use a BindAddress enum instead of having multiple cases
      
      * Deprecated the old start(hostname: String?, port: Int?) Server method
      
      * Added deprecated fallback implementations for Server start methods
      
      * Simplified startup option checks to start the server as soon as a check is valid
      
      * Refactored HTTPServer.Configuration to use an address as its underlying connection point
      
      * Removed the extension on URI, integrating the transformation for any host
      
      * Added URI.Scheme with common schemes, along with an initializer on URI that takes a Scheme
      
      * Refactored ServeCommand.Error and made ServerStartError internal
      
      * Refactored URI.Scheme into a struct and added tests
      Co-authored-by: NGwynne Raskind <gwynne@users.noreply.github.com>
      d910be46
  27. 15 8月, 2020 1 次提交
  28. 13 8月, 2020 1 次提交
  29. 07 8月, 2020 1 次提交
  30. 05 8月, 2020 1 次提交
    • T
      Update sponsors (#2461) · c23e77d7
      Tanner 提交于
      * Update sponsors
      
      * Update README.md
      
      * Update README.md
      
      * Update README.md
      c23e77d7
  31. 29 7月, 2020 1 次提交
  32. 28 7月, 2020 1 次提交
  33. 25 7月, 2020 1 次提交
  34. 24 7月, 2020 1 次提交