- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 76 for add_header (0.06 seconds)
-
mockwebserver/README.md
### Java ```java MockResponse response = new MockResponse.Builder() .addHeader("Content-Type", "application/json; charset=utf-8") .addHeader("Cache-Control", "no-cache") .body("{}") .build(); ``` ### Kotlin ```kotlin val response = MockResponse.Builder() .addHeader("Content-Type", "application/json; charset=utf-8") .addHeader("Cache-Control", "no-cache") .body("{}") .build() ```
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Oct 30 21:39:59 GMT 2025 - 8.1K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Hpack.kt
val staticEntry = STATIC_HEADER_TABLE[index] addHeader(staticEntry) } else { val dynamicTableIndex = dynamicTableIndex(index - STATIC_HEADER_TABLE.size) if (dynamicTableIndex < 0 || dynamicTableIndex >= dynamicTable.size) { throw IOException("Header index too large ${index + 1}") } addHeader(dynamicTable[dynamicTableIndex]!!) } }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Mar 15 09:02:18 GMT 2026 - 23.2K bytes - Click Count (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt
* by a colon and a value. */ public fun addHeader(header: String): Builder = apply { headers_.add(header) } /** * Adds a new header with the name and value. This may be used to add multiple headers with the * same name. */ public fun addHeader( name: String, value: Any, ): Builder = apply {Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Jun 20 11:46:46 GMT 2025 - 17.8K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/AccessHeaders.kt
val request = Request .Builder() .url("https://api.github.com/repos/square/okhttp/issues") .header("User-Agent", "OkHttp Headers.java") .addHeader("Accept", "application/json; q=0.5") .addHeader("Accept", "application/vnd.github.v3+json") .build() client.newCall(request).execute().use { response -> if (!response.isSuccessful) throw IOException("Unexpected code $response")Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 1.4K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ConnectionCoalescingTest.kt
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Jun 19 11:44:16 GMT 2025 - 19.1K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/EncryptInvoker.java
context.style = new AttributedStyle(); context.addInHeader( context.style.italic().bold().foreground(Colors.rgbColor("green")), "Maven Encryption " + CLIReportingUtils.showVersionMinimal()); context.addInHeader("Tool for secure password management on workstations."); context.addInHeader("This tool is part of Apache Maven 4 distribution.");
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jun 11 13:14:09 GMT 2025 - 4.5K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/UpgradeInvoker.java
context.style = new AttributedStyle(); context.addInHeader( context.style.italic().bold().foreground(Colors.rgbColor("green")), "Maven Upgrade " + CLIReportingUtils.showVersionMinimal()); context.addInHeader("Tool for upgrading Maven projects and dependencies."); context.addInHeader("This tool is part of Apache Maven 4 distribution.");
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jun 11 13:14:09 GMT 2025 - 4.4K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 70.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/RoleQueryHelperTest.java
} roleQueryHelperImpl.headerKey = "fess1"; getMockRequest().addHeader("aaa", "bbb"); roleSet = buildByHeader(roleQueryHelperImpl, getMockRequest()); assertEquals(0, roleSet.size()); roleQueryHelperImpl.encryptedHeaderValue = false; getMockRequest().addHeader("fess1", System.currentTimeMillis() / 1000 + "\nrole1,role2,role3");Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 28.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/cors/CorsHandlerTest.java
httpResponse.addHeader(ACCESS_CONTROL_ALLOW_ORIGIN, origin); httpResponse.addHeader(ACCESS_CONTROL_ALLOW_METHODS, "GET, POST, OPTIONS"); httpResponse.addHeader(ACCESS_CONTROL_ALLOW_HEADERS, "Content-Type"); httpResponse.addHeader(ACCESS_CONTROL_MAX_AGE, "3600"); httpResponse.addHeader(ACCESS_CONTROL_ALLOW_CREDENTIALS, "true");Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 21 06:04:58 GMT 2026 - 26.3K bytes - Click Count (0)