Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for HEAD (0.18 sec)

  1. samples/static-server/src/main/java/okhttp3/sample/SampleServer.java

        if (!basePath.endsWith("/")) basePath += "/";
    
        StringBuilder response = new StringBuilder();
        response.append(String.format("<html><head><title>%s</title></head><body>", basePath));
        response.append(String.format("<h1>%s</h1>", basePath));
        for (String file : directory.list()) {
          response.append(String.format("<div class='file'><a href='%s'>%s</a></div>",
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Jan 02 02:50:44 GMT 2019
    - 4.7K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        testRedirect(false, "HEAD")
      }
    
      @Test
      fun response308WithOptions() {
        testRedirect(false, "OPTIONS")
      }
    
      @Test
      fun response308WithPost() {
        testRedirect(false, "POST")
      }
    
      /**
       * In OkHttp 4.5 and earlier, HTTP 307 and 308 redirects were only honored if the request method
       * was GET or HEAD.
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  3. docs/changelogs/changelog_4x.md

     *  Fix: Un-deprecate `MockResponse.setHeaders()` and other setters. These were deprecated in OkHttp
        4.0 but that broke method chaining for Java callers.
    
     *  Fix: Don't crash on HTTP/2 HEAD requests when the `Content-Length` header is present but is not
        consistent with the length of the response body.
    
     *  Fix: Don't crash when converting a `HttpUrl` instance with an unresolvable hostname to a URI.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2.kt

       * The format is:
       *
       * ```
       * direction streamID length type flags
       * ```
       *
       * Where direction is `<<` for inbound and `>>` for outbound.
       *
       * For example, the following would indicate a HEAD request sent from the client.
       * ```
       * `<< 0x0000000f    12 HEADERS       END_HEADERS|END_STREAM
       * ```
       */
      fun frameLog(
        inbound: Boolean,
        streamId: Int,
        length: Int,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/CacheTest.kt

        server.enqueue(
          MockResponse.Builder()
            .addHeader("Allow: GET, HEAD")
            .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS))
            .addHeader("Cache-Control: max-age=0")
            .body("A")
            .build(),
        )
        server.enqueue(
          MockResponse.Builder()
            .addHeader("Allow: GET, HEAD, PUT")
            .code(HttpURLConnection.HTTP_NOT_MODIFIED)
            .build(),
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  6. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

       * request was sent as intended. This method will block until the request is available, possibly
       * forever.
       *
       * @return the head of the request queue
       */
      @Throws(InterruptedException::class)
      fun takeRequest(): RecordedRequest = requestQueue.take()
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

        mostRecentRebuildFailed = false
      }
    
      /**
       * Returns a snapshot of the entry named [key], or null if it doesn't exist is not currently
       * readable. If a value is returned, it is moved to the head of the LRU queue.
       */
      @Synchronized
      @Throws(IOException::class)
      operator fun get(key: String): Snapshot? {
        initialize()
    
        checkNotClosed()
        validateKey(key)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
  8. okhttp/api/okhttp.api

    	public static synthetic fun delete$default (Lokhttp3/Request$Builder;Lokhttp3/RequestBody;ILjava/lang/Object;)Lokhttp3/Request$Builder;
    	public fun get ()Lokhttp3/Request$Builder;
    	public fun head ()Lokhttp3/Request$Builder;
    	public fun header (Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Request$Builder;
    	public fun headers (Lokhttp3/Headers;)Lokhttp3/Request$Builder;
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 70.2K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/http/HttpMethod.kt

            method == "REPORT"
        )
    
      @JvmStatic // Despite being 'internal', this method is called by popular 3rd party SDKs.
      fun permitsRequestBody(method: String): Boolean = !(method == "GET" || method == "HEAD")
    
      fun redirectsWithBody(method: String): Boolean = method == "PROPFIND"
    
      fun redirectsToGet(method: String): Boolean = method != "PROPFIND"
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/http/HttpHeaders.kt

     * Returns true if the response headers and status indicate that this response has a (possibly
     * 0-length) body. See RFC 7231.
     */
    fun Response.promisesBody(): Boolean {
      // HEAD requests never yield a body regardless of the response headers.
      if (request.method == "HEAD") {
        return false
      }
    
      val responseCode = code
      if ((responseCode < HTTP_CONTINUE || responseCode >= 200) &&
        responseCode != HTTP_NO_CONTENT &&
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.2K bytes
    - Viewed (0)
Back to top