- Sort Score
- Num 10 results
- Language All
Results 1 - 6 of 6 for getHeaderFields (0.15 seconds)
-
src/test/java/org/codelibs/curl/io/IOIntegrationTest.java
public InputStream getErrorStream() { throw new AssertionError("HEAD request should not read error stream"); } @Override public Map<String, List<String>> getHeaderFields() { return Collections.emptyMap(); } } @Test public void test_HeadRequestWith200_ReturnsEmptyBody() throws Exception { // ## Arrange ##
Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 12:00:34 GMT 2026 - 44.1K bytes - Click Count (0) -
src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java
when(conn.getHeaderField(0)).thenReturn(statusLine); // Mock getHeaderFields to return our headers Map<String, List<String>> allHeaders = headers != null ? new HashMap<>(headers) : new HashMap<>(); allHeaders.put(null, Collections.singletonList(statusLine)); // Status line when(conn.getHeaderFields()).thenReturn(allHeaders); // Mock individual header access by both string key and index
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 12.6K bytes - Click Count (0) -
src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java
entry.setValue(Collections.unmodifiableList((List) entry.getValue())); } return headerFields = Collections.unmodifiableMap(map); } @Override public Map getHeaderFields() { if (headerFields != null) { return headerFields; } try { handshake(); } catch (final IOException ex) {} return getHeaderFields0();
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 22.1K bytes - Click Count (0) -
src/main/java/jcifs/http/NtlmHttpURLConnection.java
} return this.headerFields = Collections.unmodifiableMap(map); } @Override public Map<String, List<String>> getHeaderFields() { if (this.headerFields != null) { return this.headerFields; } handshake(); return getHeaderFields0(); } @OverrideCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 25.6K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/RequestLine.kt
import java.net.Proxy import okhttp3.HttpUrl import okhttp3.Request object RequestLine { /** * Returns the request status line, like "GET / HTTP/1.1". This is exposed to the application by * [HttpURLConnection.getHeaderFields], so it needs to be set even if the transport is * HTTP/2. */ fun get( request: Request, proxyType: Proxy.Type, ): String = buildString { append(request.method)Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jun 17 00:47:36 GMT 2025 - 1.9K bytes - Click Count (0) -
src/main/java/org/codelibs/curl/CurlRequest.java
try { response.setEncoding(encoding); response.setHttpStatusCode(con.getResponseCode()); response.setHeaders(con.getHeaderFields()); } catch (final Exception e) { throw new CurlException("Failed to access the response.", e); } writeContent(() -> { try {Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 09:11:12 GMT 2026 - 19.7K bytes - Click Count (0)