Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for json (0.14 sec)

  1. okhttp/src/test/java/okhttp3/RequestTest.kt

        assertThat(bodyToHex(body), "Retransmit body").isEqualTo("616263")
      }
    
      /** Common verbs used for apis such as GitHub, AWS, and Google Cloud.  */
      @Test
      fun crudVerbs() {
        val contentType = "application/json".toMediaType()
        val body = "{}".toRequestBody(contentType)
    
        val get = Request.Builder().url("http://localhost/api").get().build()
        assertThat(get.method).isEqualTo("GET")
        assertThat(get.body).isNull()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.4K bytes
    - Viewed (0)
Back to top