We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
同时发起两次post请求,会抛异常“Only allowed to configure once.”,Kalle的Config处理有问题 不得已,我只能自己在初始化的时候加个锁 var post: SimpleBodyRequest.Api synchronized(lock) { post = Kalle.post(url) } val perform = post .setHeaders(headers) .connectTimeout(5, TimeUnit.SECONDS) .body(getRequestBody(cipherString.toString())) .converter(Converter.DEFAULT) .perform<String, String>( String::class.java, String::class.java )
var post: SimpleBodyRequest.Api synchronized(lock) { post = Kalle.post(url) } val perform = post .setHeaders(headers) .connectTimeout(5, TimeUnit.SECONDS) .body(getRequestBody(cipherString.toString())) .converter(Converter.DEFAULT) .perform<String, String>( String::class.java, String::class.java )
The text was updated successfully, but these errors were encountered:
var post: SimpleBodyRequest.Api synchronized(lock) { post = Kalle.post(url) } val perform = post.setHeaders(headers) .connectTimeout(5, TimeUnit.SECONDS) ...
var post: SimpleBodyRequest.Api
synchronized(lock) {
post = Kalle.post(url)
}
val perform = post.setHeaders(headers)
.connectTimeout(5, TimeUnit.SECONDS)
Sorry, something went wrong.
No branches or pull requests
同时发起两次post请求,会抛异常“Only allowed to configure once.”,Kalle的Config处理有问题
不得已,我只能自己在初始化的时候加个锁
var post: SimpleBodyRequest.Api synchronized(lock) { post = Kalle.post(url) } val perform = post .setHeaders(headers) .connectTimeout(5, TimeUnit.SECONDS) .body(getRequestBody(cipherString.toString())) .converter(Converter.DEFAULT) .perform<String, String>( String::class.java, String::class.java )
The text was updated successfully, but these errors were encountered: