Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getHeaderFields (0.4 sec)

  1. 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)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jun 17 00:47:36 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  2. 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();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  3. 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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  4. 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();
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  5. 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 {
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Sat Jul 05 01:38:18 UTC 2025
    - 17.8K bytes
    - Viewed (0)
Back to top