Skip to content

Conversation

@frameorigin
Copy link
Contributor

@frameorigin frameorigin requested a review from timonity February 10, 2023 12:01
@frameorigin frameorigin self-assigned this Feb 10, 2023
}
}

open func performRequest(method: HTTPMethod, endpoint: String) async throws -> Data {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Давай сразу добавим сюда Хедеры 🌚

}
}

open func performRequest(method: HTTPMethod, endpoint: String) async throws -> Data {
Copy link
Contributor

@timonity timonity Feb 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Предлагаю написать приватный метод, в котором будет общая логика. А публичные методы performRequest<T: Decodable>(...) -> T, performRequest<T: Decodable, P: Encodable> -> T и performRequest(...) -> Data будут использовать его внутри

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants