Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for UserAgent (0.18 sec)

  1. samples/tlssurvey/src/main/kotlin/okhttp3/survey/ssllabs/SslLabsClient.kt

      suspend fun clients(): List<Client> {
        return sslLabsApi.clients().map { userAgent ->
          Client(
            userAgent = userAgent.name,
            version = userAgent.version,
            platform = userAgent.platform,
            enabled = userAgent.suiteNames.map { SuiteId(null, it) },
          )
        }
      }
    }
    
    suspend fun main() {
      val sslLabsClient =
        SslLabsClient(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Apr 02 01:44:15 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  2. samples/tlssurvey/src/main/kotlin/okhttp3/survey/RunSurvey.kt

      val android5 = sslLabsClients.first { it.userAgent == "Android" && it.version == "5.0.0" }
      val android9 = sslLabsClients.first { it.userAgent == "Android" && it.version == "9.0" }
      val chrome33 = sslLabsClients.first { it.userAgent == "Chrome" && it.version == "33" }
      val chrome57 = sslLabsClients.first { it.userAgent == "Chrome" && it.version == "57" }
      val chrome80 = sslLabsClients.first { it.userAgent == "Chrome" && it.version == "80" }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  3. samples/tlssurvey/src/main/kotlin/okhttp3/survey/ssllabs/SslLabsScrape.kt

          .build()
    
      private val api = retrofit.create(SslLabsService::class.java)
    
      suspend fun query(): List<Client> {
        return api.clients().map { userAgent ->
          Client(userAgent.name, userAgent.version, userAgent.platform, enabled = userAgent.suiteNames.map { SuiteId(null, it) })
        }
      }
    }
    
    suspend fun main() {
      val client = OkHttpClient()
    
      val scraper = SslLabsScraper(client)
    
    Plain Text
    - Registered: Fri Mar 29 11:42:11 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  4. samples/tlssurvey/src/main/kotlin/okhttp3/survey/Clients.kt

    import okhttp3.survey.types.SuiteId
    import okio.FileSystem
    import okio.Path.Companion.toPath
    import org.conscrypt.Conscrypt
    
    fun currentOkHttp(ianaSuites: IanaSuites): Client {
      return Client(
        userAgent = "OkHttp",
        version = OkHttp.VERSION,
        enabled =
          ConnectionSpec.MODERN_TLS.cipherSuites!!.map {
            ianaSuites.fromJavaName(it.javaName)
          },
        supported =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Apr 02 01:44:15 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  5. samples/tlssurvey/src/main/kotlin/okhttp3/survey/types/Client.kt

     * limitations under the License.
     */
    package okhttp3.survey.types
    
    data class Client(
      val userAgent: String,
      val version: String,
      val platform: String? = null,
      val enabled: List<SuiteId> = listOf(),
      val supported: List<SuiteId> = listOf(),
    ) {
      val nameAndVersion: String
        get() = "$userAgent/$version"
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Apr 02 01:44:15 GMT 2024
    - 883 bytes
    - Viewed (0)
  6. samples/tlssurvey/src/main/kotlin/okhttp3/survey/ssllabs/UserAgentCapabilities.kt

      val supportsCompression: Boolean,
      val supportsNpn: Boolean,
      val supportsRi: Boolean,
      val supportsSni: Boolean,
      val supportsStapling: Boolean,
      val supportsTickets: Boolean,
      val userAgent: String?,
      val version: String,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Apr 02 01:44:15 GMT 2024
    - 1.5K bytes
    - Viewed (1)
  7. okcurl/src/main/kotlin/okhttp3/curl/internal/-MainCommon.kt

        if (!isSpecialHeader(parts[0])) {
          request.header(parts[0], parts[1])
        }
      }
      referer?.let {
        request.header("Referer", it)
      }
      request.header("User-Agent", userAgent)
    
      return request.build()
    }
    
    private fun Main.mediaType(): MediaType? {
      val mimeType =
        headers?.let {
          for (header in it) {
            val parts = header.split(':', limit = 2)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  8. docs/logging/README.md

        "object": "hosts",
        "status": "OK",
        "statusCode": 200,
        "rx": 380,
        "tx": 476,
        "timeToResponse": "257694819ns"
      },
      "remotehost": "127.0.0.1",
      "requestID": "16ABE7A785E7AC2C",
      "userAgent": "MinIO (linux; amd64) minio-go/v7.0.15 mc/DEVELOPMENT.2021-10-06T23-39-34Z",
      "requestHeader": {
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Aug 15 23:04:20 GMT 2023
    - 9.9K bytes
    - Viewed (2)
  9. docs/iam/access-management-plugin.md

            "false"
          ],
          "SourceIp": [
            "127.0.0.1"
          ],
          "User-Agent": [
            "MinIO (linux; amd64) minio-go/v7.0.24 mc/DEVELOPMENT.2022-04-20T23-07-53Z"
          ],
          "UserAgent": [
            "MinIO (linux; amd64) minio-go/v7.0.24 mc/DEVELOPMENT.2022-04-20T23-07-53Z"
          ],
          "X-Amz-Content-Sha256": [
            "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
          ],
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Dec 13 22:28:48 GMT 2022
    - 4.4K bytes
    - Viewed (0)
  10. okcurl/src/test/kotlin/okhttp3/curl/MainTest.kt

        assertThat(request.url.toString()).isEqualTo("http://example.com/")
        assertThat(request.header("Referer")).isEqualTo("foo")
        assertThat(request.body).isNull()
      }
    
      @Test
      fun userAgent() {
        val request = fromArgs("-A", "foo", "http://example.com").createRequest()
        assertThat(request.method).isEqualTo("GET")
        assertThat(request.url.toString()).isEqualTo("http://example.com/")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.3K bytes
    - Viewed (0)
Back to top