1
0
mirror of https://github.com/square/okhttp.git synced 2025-08-10 11:03:02 +03:00
Commit Graph

4 Commits

Author SHA1 Message Date
monkey-mas
fa9118949e Use idiomatic Kotlin in Request.kt (#5092)
- define @get:JvmName(...) for the following vals in constructor instead of passing builder: Builder.
  - url: HttpUrl
  - method: String
  - headers: Headers
  - body: RequestBody?

- add @Deprecated(...) to the following functions.
  - fun url(): HttpUrl
  - fun method(): String
  - fun headers(): Headers
  - fun body(): RequestBody?
  - fun cacheControl(): CacheControl

- clean up code where ()(Parentheses) is unnecessarily used.
2019-05-22 15:55:00 -04:00
Jesse Wilson
e67ec3c51e Adopt HttpUrl's new Kotlin API 2019-05-20 21:01:04 -04:00
Jesse Wilson
27200057b8 Adopt idiomatic Kotlin in Challenge 2019-05-13 20:56:53 -04:00
Jesse Wilson
ab85960cdb Convert JavaNetAuthenticator to Kotlin (#4909)
* Rename JavaNetAuthenticator.java to .kt

* Convert JavaNetAuthenticator to Kotlin
2019-04-09 22:56:52 -07:00