Skip to content

Restructure HTTP1-specific code and add invocation strategy

Choose a tag to compare

@tachyonics tachyonics released this 01 Nov 00:00
57ed50c

Restructures HTTP1-specific operation types into a separate library to allow SmokeOperations to be protocol-agnostic. Also adds an invocation strategy that by default hands off each request to DispatchQueue.global(). This avoids running operations on the thread from SwiftNIO and running into issues with the event loop. Provides an extension point with a strategy protocol if required.

Note: This is a breaking change. The package import for HTTP1-specific operation types will need to change from SmokeOperations to SmokeOperationsHTTP1.