This PR constains the work done to define the necessary protocols and enumerations to start defining remote API service as well as an implementation of the URLProtocol to mock requests and responses when using the URLSession to make remote calls.
To provide further details about this work:
declared the Communications library in the Package file;
defined the minimum Apple platform versions in the Package file to support the async/await feature;
defined the HTTPRequestMethod and HTTPResponseCode public enumerations;
defined the Endpoint and Client public protocols;
implemented the internal MakeURLRequestUseCase use case;
implemented the MockURLProtocol class that mocks requests and responses on URLSession instances;
started writing and updating the README file.
This PR constains the work done to define the necessary protocols and enumerations to start defining remote API service as well as an implementation of the `URLProtocol` to mock requests and responses when using the `URLSession` to make remote calls.
To provide further details about this work:
- [x] declared the `Communications` library in the `Package` file;
- [x] defined the minimum Apple platform versions in the `Package` file to support the async/await feature;
- [x] defined the `HTTPRequestMethod` and `HTTPResponseCode` public enumerations;
- [x] defined the `Endpoint` and `Client` public protocols;
- [x] implemented the internal `MakeURLRequestUseCase` use case;
- [x] implemented the `MockURLProtocol` class that mocks requests and responses on `URLSession` instances;
- [x] started writing and updating the `README` file.
javier
self-assigned this 2023-04-16 18:47:50 +00:00
javier
added 11 commits 2023-04-16 18:47:51 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This PR constains the work done to define the necessary protocols and enumerations to start defining remote API service as well as an implementation of the
URLProtocolto mock requests and responses when using theURLSessionto make remote calls.To provide further details about this work:
Communicationslibrary in thePackagefile;Packagefile to support the async/await feature;HTTPRequestMethodandHTTPResponseCodepublic enumerations;EndpointandClientpublic protocols;MakeURLRequestUseCaseuse case;MockURLProtocolclass that mocks requests and responses onURLSessioninstances;READMEfile.