- Sort Score
- Num 10 results
- Language All
Results 51 - 60 of 1,418 for CONTENT (0.07 seconds)
-
fess-crawler/src/test/java/org/codelibs/fess/crawler/util/ResponseDataUtilTest.java
assertTrue(tempFile.exists()); // Read and verify content try (FileInputStream fis = new FileInputStream(tempFile)) { byte[] buffer = new byte[1024]; int bytesRead = fis.read(buffer); String content = new String(buffer, 0, bytesRead); assertEquals("Test response body", content); } finally { // Clean up tempFile.delete();
Created: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Sat Nov 22 13:28:22 GMT 2025 - 7.9K bytes - Click Count (0) -
tests/test_default_response_class.py
def test_router_a_a_override(): with client: response = client.get("/a/a/override") assert response.content == b"Hello A A" assert response.headers["content-type"] == text_type def test_router_a_b(): with client: response = client.get("/a/b") assert response.content == b"Hello A B" assert response.headers["content-type"] == text_type
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Mar 01 20:49:20 GMT 2020 - 5.2K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/plugin/internal/MojoLogWrapper.java
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 3.3K bytes - Click Count (0) -
build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/ClassDocRendererTest.groovy
def classDoc(Map<String, ?> args = [:], String name) { ClassDoc classDoc = Mock() def content = args.content ?: parse('<section></section>') def propertiesSection = withCategories { content.section.find { it.title[0].text().trim() == 'Properties' } } def propertyDetailsSection = withCategories { content.section.find { it.title[0].text().trim() == 'Property details' } }Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 40.8K bytes - Click Count (0) -
docs/ru/docs/advanced/custom-response.md
Его можно возвращать напрямую. Он принимает следующие параметры: - `content` — `str` или `bytes`. - `status_code` — целое число, HTTP статус-код. - `headers` — словарь строк. - `media_type` — строка, задающая тип содержимого. Например, `"text/html"`. FastAPI (фактически Starlette) автоматически добавит заголовок Content-Length. Также будет добавлен заголовок Content-Type, основанный на `media_type` и с добавлением charset для текстовых типов.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 19.7K bytes - Click Count (0) -
tests/test_default_response_class_router.py
def test_router_a_a_override(): with client: response = client.get("/a/a/override") assert response.content == b"Hello A A" assert response.headers["content-type"] == text_type def test_router_a_b(): with client: response = client.get("/a/b") assert response.content == b"Hello A B" assert response.headers["content-type"] == text_type
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Mar 01 20:49:20 GMT 2020 - 5K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/RequestBody.kt
message = "Moved to extension function. Put the 'content' argument first to fix Java", replaceWith = ReplaceWith( expression = "content.toRequestBody(contentType)", imports = ["okhttp3.RequestBody.Companion.toRequestBody"], ), level = DeprecationLevel.WARNING, ) fun create( contentType: MediaType?, content: String,
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Oct 07 14:16:29 GMT 2025 - 9.3K bytes - Click Count (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/ExtractData.java
} /** * Gets the extracted content. * * @return the extracted content */ public String getContent() { return content; } /** * Sets the extracted content. * * @param content the content to set */ public void setContent(final String content) { this.content = content; } /**Created: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Sat Sep 06 04:15:37 GMT 2025 - 3.8K bytes - Click Count (0) -
src/test/java/jcifs/pac/kerberos/KerberosTokenTest.java
// Write length if (content.length < 128) { baos.write(content.length); } else if (content.length < 256) { baos.write(0x81); // length of length = 1 baos.write(content.length); } else { baos.write(0x82); // length of length = 2 baos.write((content.length >> 8) & 0xFF); baos.write(content.length & 0xFF); }Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.8K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/util/DocList.java
processingTime = 0; } /** * Gets the total content size of all documents in this list. * * @return the total content size in bytes */ public long getContentSize() { return contentSize; } /** * Adds to the total content size of this document list. * * @param contentSize the content size to add in bytes */Created: Sat Dec 20 09:19:18 GMT 2025 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 3.2K bytes - Click Count (0)