- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 51 for read_text (0.44 sec)
-
docs_src/websockets/tutorial002_an_py39.py
await websocket.accept() while True: data = await websocket.receive_text() await websocket.send_text( f"Session cookie or query token value is: {cookie_or_token}" ) if q is not None: await websocket.send_text(f"Query parameter q is: {q}")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 2.8K bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/SortAcceptedApiChangesTaskIntegrationTest.kt
} ] } """) val actualFirstJson = loadChangesJson(firstAcceptedApiChangesFile.readText()) val actualSecondJson = loadChangesJson(secondAcceptedApiChangesFile.readText()) assertEquals(expectedFirstJson, actualFirstJson) assertEquals(expectedSecondJson, actualSecondJson) } private
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Jun 04 14:00:46 UTC 2024 - 9.7K bytes - Viewed (0) -
tests/test_tutorial/test_websockets/test_tutorial001.py
with client.websocket_connect("/ws") as websocket: message = "Message one" websocket.send_text(message) data = websocket.receive_text() assert data == f"Message text was: {message}" message = "Message two" websocket.send_text(message) data = websocket.receive_text()
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 10 09:08:19 UTC 2020 - 822 bytes - Viewed (0) -
docs_src/websockets/tutorial002.py
await websocket.accept() while True: data = await websocket.receive_text() await websocket.send_text( f"Session cookie or query token value is: {cookie_or_token}" ) if q is not None: await websocket.send_text(f"Query parameter q is: {q}")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Nov 13 16:10:54 UTC 2022 - 2.8K bytes - Viewed (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/CheckSubprojectsInfo.kt
@DisableCachingByDefault(because = "Not worth caching") abstract class CheckSubprojectsInfo : SubprojectsInfo() { @TaskAction fun checkSubprojectsInfo() { if (subprojectsJson.asFile.readText() != generateSubprojectsJson()) { throw GradleException( "New project(s) added without updating subproject JSON. Please run `:${GenerateSubprojectsInfo.TASK_NAME}` task." ) }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Jul 07 13:12:26 UTC 2021 - 1.2K bytes - Viewed (0) -
.teamcity/src/main/kotlin/model/PerformanceTestBucketProvider.kt
} private fun readPerformanceTestDurations(performanceTestDurationsJson: File): OperatingSystemToTestProjectPerformanceTestDurations { val durations = JSON.parseArray(performanceTestDurationsJson.readText(StandardCharsets.UTF_8)) val pairs = durations.flatMap { it -> val scenarioDurations = it as JSONObject val scenario = Scenario.fromTestId(scenarioDurations["scenario"] as String)
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Mon Feb 19 11:22:56 UTC 2024 - 15.3K bytes - Viewed (0) -
build-logic-commons/publishing/src/main/kotlin/gradlebuild.publish-public-libraries.gradle.kts
writeText(readText().replace("\\Q<lastUpdated>\\E\\d+\\Q</lastUpdated>\\E".toRegex(), "<lastUpdated>${Year.now().value}0101000000</lastUpdated>")) } localRepository.get().asFileTree.matching { include("**/*.module") }.forEach { val content = it.readText() .replace("\"buildId\":\\s+\"\\w+\"".toRegex(), "\"buildId\": \"\"")
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Sep 19 13:21:47 UTC 2024 - 5.9K bytes - Viewed (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild.update-versions.gradle.kts
) } tasks.register<UpdateReleasedVersions>("updateReleasedVersionsToLatestNightly") { currentReleasedVersion = project.provider { val jsonText = URI("https://services.gradle.org/versions/nightly").toURL().readText() println(jsonText) val versionInfo = Gson().fromJson(jsonText, VersionBuildTimeInfo::class.java) ReleasedVersion(versionInfo.version, versionInfo.buildTime) } }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Fri Oct 11 18:33:20 UTC 2024 - 2.1K bytes - Viewed (0) -
docs_src/websockets/tutorial003_py39.py
async def send_personal_message(self, message: str, websocket: WebSocket): await websocket.send_text(message) async def broadcast(self, message: str): for connection in self.active_connections: await connection.send_text(message) manager = ConnectionManager() @app.get("/") async def get(): return HTMLResponse(html)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 2.5K bytes - Viewed (0) -
.teamcity/src/main/kotlin/model/GradleSubprojectProvider.kt
} data class JsonBasedGradleSubprojectProvider(private val jsonFile: File) : GradleSubprojectProvider { @Suppress("UNCHECKED_CAST") override val subprojects = JSON.parseArray(jsonFile.readText()).map { toSubproject(it as Map<String, Any>) } private val nameToSubproject = subprojects.map { it.name to it }.toMap() override fun getSubprojectsForFunctionalTest(testConfig: TestCoverage) =
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Fri Jun 02 14:55:06 UTC 2023 - 2.2K bytes - Viewed (0)