icerockdev / moko-network

Network components with codegeneration of rest api for mobile (android & ios) Kotlin Multiplatform development
https://moko.icerock.dev
Apache License 2.0
151 stars 29 forks source link

Add support for reading HttpStatusCode and headers of response, not only deserialized model #118

Closed Alex009 closed 1 year ago

Alex009 commented 3 years ago

in our usecases we not read response headers yet and do status code checks only in ErrorFeature (if status code not successful then this feature try create exception for this case). i think it will be good if we add HttpResponse<Model> case in generation, in addition to already exists methods

Originally posted by @Alex009 in https://github.com/icerockdev/moko-network/issues/3#issuecomment-601499416

shadowsheep1 commented 2 years ago

Hi @Alex009 . Any news about this?

Alex009 commented 1 year ago

will be released in 0.21.0