Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for modifiers (0.19 sec)

  1. okhttp/src/main/kotlin/okhttp3/Interceptor.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3
    
    import java.io.IOException
    import java.util.concurrent.TimeUnit
    
    /**
     * Observes, modifies, and potentially short-circuits requests going out and the corresponding
     * responses coming back in. Typically interceptors add, remove, or transform headers on the request
     * or response.
     *
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

            .clearHeaders()
            .code(HttpURLConnection.HTTP_NOT_MODIFIED)
            .addHeader("Content-Encoding: gzip")
            .build(),
        )
        server.enqueue(
          MockResponse(body = "b"),
        )
        val response1 = getResponse(newRequest("/"))
        assertThat(response1.code).isEqualTo(HttpURLConnection.HTTP_NOT_MODIFIED)
        assertContent("", response1)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CacheTest.kt

            MockResponse.Builder()
              .addHeader("Last-Modified: $lastModifiedDate")
              .addHeader("Date: " + formatDate(-15, TimeUnit.SECONDS))
              .build(),
          )
        assertThat(conditionalRequest.headers["If-Modified-Since"])
          .isEqualTo(lastModifiedDate)
      }
    
      @Test
      fun defaultExpirationDateFullyCachedForMoreThan24Hours() {
        //      last modified: 105 days ago
        //             served:   5 days ago
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt

              conditionValue = etag
            }
    
            lastModified != null -> {
              conditionName = "If-Modified-Since"
              conditionValue = lastModifiedString
            }
    
            servedDate != null -> {
              conditionName = "If-Modified-Since"
              conditionValue = servedDateString
            }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12K bytes
    - Viewed (0)
  5. okhttp-idna-mapping-table/src/main/resources/okhttp3/internal/idna/IdnaMappingTable.txt

    02B6          ; mapped                 ; 0281          # 1.1  MODIFIER LETTER SMALL CAPITAL INVERTED R
    02B7          ; mapped                 ; 0077          # 1.1  MODIFIER LETTER SMALL W
    02B8          ; mapped                 ; 0079          # 1.1  MODIFIER LETTER SMALL Y
    02B9..02C1    ; valid                                  # 1.1  MODIFIER LETTER PRIME..MODIFIER LETTER REVERSED GLOTTAL STOP
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Feb 10 11:25:47 GMT 2024
    - 854.1K bytes
    - Viewed (2)
  6. okcurl/src/test/kotlin/okhttp3/curl/MainTest.kt

      }
    
      @Test
      fun headerSplitWithDate() {
        val request =
          fromArgs(
            "-H",
            "If-Modified-Since: Mon, 18 Aug 2014 15:16:06 GMT",
            "http://example.com",
          ).createRequest()
        assertThat(request.header("If-Modified-Since")).isEqualTo(
          "Mon, 18 Aug 2014 15:16:06 GMT",
        )
      }
    
      companion object {
        fun fromArgs(vararg args: String): Main {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http2/Hpack.kt

          Header("expires", ""),
          Header("from", ""),
          Header("host", ""),
          Header("if-match", ""),
          Header("if-modified-since", ""),
          Header("if-none-match", ""),
          Header("if-range", ""),
          Header("if-unmodified-since", ""),
          Header("last-modified", ""),
          Header("link", ""),
          Header("location", ""),
          Header("max-forwards", ""),
          Header("proxy-authenticate", ""),
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 22.5K bytes
    - Viewed (1)
  8. LICENSE.txt

          meet the following conditions:
    
          (a) You must give any other recipients of the Work or
              Derivative Works a copy of this License; and
    
          (b) You must cause any modified files to carry prominent notices
              stating that You changed the files; and
    
          (c) You must retain, in the Source form of any Derivative Works
              that You distribute, all copyright, patent, trademark, and
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jul 23 14:02:28 GMT 2012
    - 11.1K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/http/HttpHeaders.kt

     * limitations under the License.
     */
    @file:JvmName("HttpHeaders")
    
    package okhttp3.internal.http
    
    import java.io.EOFException
    import java.net.HttpURLConnection.HTTP_NOT_MODIFIED
    import java.net.HttpURLConnection.HTTP_NO_CONTENT
    import java.util.Collections
    import okhttp3.Challenge
    import okhttp3.Cookie
    import okhttp3.CookieJar
    import okhttp3.Headers
    import okhttp3.HttpUrl
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/http/StatusLine.kt

              ?: throw ProtocolException(
                "Unexpected status line: $statusLine",
              )
    
          // Parse an optional response message like "OK" or "Not Modified". If it
          // exists, it is separated from the response code by a space.
          var message = ""
          if (statusLine.length > codeStart + 3) {
            if (statusLine[codeStart + 3] != ' ') {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 3.3K bytes
    - Viewed (0)
Back to top