- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 56 for FileSystem (0.17 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/NativeImageTestsAccessors.kt
import okhttp3.internal.connection.Exchange import okhttp3.internal.connection.RealCall import okhttp3.internal.connection.RealConnection import okio.FileSystem import okio.Path internal fun buildCache( file: Path, maxSize: Long, fileSystem: FileSystem, ): Cache { return Cache(fileSystem, file, maxSize) } internal var RealConnection.idleAtNsAccessor: Long get() = idleAtNs set(value) { idleAtNs = value }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 1.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/osgi/OsgiTest.kt
@BeforeEach fun setUp() { testResourceDir = "./build/resources/test/okhttp3/osgi".toPath() workspaceDir = testResourceDir / "workspace" // Ensure we start from scratch. fileSystem.deleteRecursively(workspaceDir) fileSystem.createDirectories(workspaceDir) } /** * Resolve the OSGi metadata of the all okhttp3 modules. If required modules do not have OSGi * metadata this will fail with an exception. */
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/publicsuffix/PublicSuffixListGenerator.kt
* * * The resulting file is used by [PublicSuffixDatabase]. */ class PublicSuffixListGenerator( projectRoot: Path = ".".toPath(), val fileSystem: FileSystem = FileSystem.SYSTEM, val client: OkHttpClient = OkHttpClient(), ) { private val resources = projectRoot / "okhttp/src/main/resources/okhttp3/internal/publicsuffix"
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Apr 18 01:24:38 UTC 2024 - 6K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/PostPath.kt
class PostPath { private val client = OkHttpClient() private val fileSystem = FakeFileSystem() val path = "test.json".toPath() fun run() { fileSystem.write(path) { writeUtf8("{}") } val request = Request.Builder() .url("https://httpbin.org/anything") .put(path.asRequestBody(fileSystem, MEDIA_TYPE_JSON)) .build()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.6K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/okio/LoggingFilesystem.kt
* limitations under the License. */ package okhttp3.okio import okio.FileSystem import okio.ForwardingFileSystem import okio.Path import okio.Sink import okio.Source class LoggingFilesystem(fileSystem: FileSystem) : ForwardingFileSystem(fileSystem) { fun log(line: String) { println(line) } override fun appendingSink( file: Path,
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.7K bytes - Viewed (0) -
okhttp-hpacktests/src/test/java/okhttp3/internal/http2/hpackjson/HpackJsonUtil.kt
.build() private val STORY_JSON_ADAPTER = MOSHI.adapter(Story::class.java) private val fileSystem = FileSystem.SYSTEM private fun readStory(source: BufferedSource): Story { return STORY_JSON_ADAPTER.fromJson(source)!! } private fun readStory(file: Path): Story { fileSystem.read(file) { return readStory(this) } }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheCorruptionTest.kt
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 6K bytes - Viewed (0) -
native-image-tests/src/main/kotlin/okhttp3/PublicSuffixDatabaseTest.kt
import assertk.assertions.isEqualTo import assertk.assertions.isGreaterThan import okhttp3.HttpUrl.Companion.toHttpUrl import okhttp3.internal.publicsuffix.PublicSuffixDatabase import okhttp3.testing.PlatformRule import okio.FileSystem import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.RegisterExtension class PublicSuffixDatabaseTest { @RegisterExtension @JvmField val platform = PlatformRule() @Test
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Dec 24 09:33:12 UTC 2023 - 1.4K bytes - Viewed (0) -
samples/tlssurvey/src/main/kotlin/okhttp3/survey/Clients.kt
import javax.net.ssl.SSLSocket import javax.net.ssl.SSLSocketFactory import okhttp3.ConnectionSpec import okhttp3.OkHttp import okhttp3.survey.types.Client 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 =
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue Apr 02 01:44:15 UTC 2024 - 2.5K bytes - Viewed (0) -
internal/disk/type_bsd.go
// // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. package disk // getFSType returns the filesystem type of the underlying mounted filesystem func getFSType(fstype []int8) string { b := make([]byte, len(fstype)) for i, v := range fstype { b[i] = byte(v) } return string(b)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 19 01:35:22 UTC 2021 - 1.1K bytes - Viewed (0)