- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for contentTypeHeader (0.08 seconds)
-
okcurl/src/test/kotlin/okhttp3/curl/MainTest.kt
assertThat(body!!.contentType().toString()).isEqualTo( "application/x-www-form-urlencoded; charset=utf-8", ) assertThat(bodyAsString(body)).isEqualTo("foo") } @Test fun contentTypeHeader() { val request = fromArgs( "-d", "foo", "-H", "Content-Type: application/json", "http://example.com", ).createRequest() val body = request.body
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 4.3K bytes - Click Count (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/HcHttpClient.java
} String contentType = null; final Header contentTypeHeader = response.getFirstHeader("Content-Type"); if (contentTypeHeader != null) { contentType = contentTypeHeader.getValue(); final int idx = contentType.indexOf(';'); if (idx > 0) {Created: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Sun Nov 23 12:19:14 GMT 2025 - 53.7K bytes - Click Count (0)