Fix kotlin defaultRequest indention
This commit is contained in:
parent
71bf4da7b0
commit
0997edddc2
1 changed files with 6 additions and 6 deletions
|
|
@ -1255,12 +1255,12 @@ The tool execution handler is responsible for actually executing the logic of ea
|
||||||
// Create an HTTP client with a default request configuration and JSON content negotiation
|
// Create an HTTP client with a default request configuration and JSON content negotiation
|
||||||
val httpClient = HttpClient {
|
val httpClient = HttpClient {
|
||||||
defaultRequest {
|
defaultRequest {
|
||||||
url("https://api.weather.gov")
|
url("https://api.weather.gov")
|
||||||
headers {
|
headers {
|
||||||
append("Accept", "application/geo+json")
|
append("Accept", "application/geo+json")
|
||||||
append("User-Agent", "WeatherApiClient/1.0")
|
append("User-Agent", "WeatherApiClient/1.0")
|
||||||
}
|
}
|
||||||
contentType(ContentType.Application.Json)
|
contentType(ContentType.Application.Json)
|
||||||
}
|
}
|
||||||
// Install content negotiation plugin for JSON serialization/deserialization
|
// Install content negotiation plugin for JSON serialization/deserialization
|
||||||
install(ContentNegotiation) { json(Json { ignoreUnknownKeys = true }) }
|
install(ContentNegotiation) { json(Json { ignoreUnknownKeys = true }) }
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue