Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 143 for Popen (0.02 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/EventListener.kt

       */
      open fun callStart(call: Call) {
      }
    
      /**
       * Invoked for calls that were not executed immediately because resources weren't available. The
       * call will remain in the queue until resources are available.
       *
       * Use [Dispatcher.maxRequests] and [Dispatcher.maxRequestsPerHost] to configure how many calls
       * OkHttp performs concurrently.
       */
      open fun dispatcherQueueStart(
        call: Call,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Oct 07 21:03:04 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Request.kt

          }
        }
    
        open fun get(): Builder = method("GET", null)
    
        open fun head(): Builder = method("HEAD", null)
    
        open fun post(body: RequestBody): Builder = method("POST", body)
    
        @JvmOverloads
        open fun delete(body: RequestBody? = RequestBody.EMPTY): Builder = method("DELETE", body)
    
        open fun put(body: RequestBody): Builder = method("PUT", body)
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Oct 30 13:46:58 UTC 2025
    - 14.7K bytes
    - Viewed (1)
  3. android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.java

          for (int j = i; j <= MAX_BOUND; j++) {
            for (BoundType lowerType : BoundType.values()) {
              for (BoundType upperType : BoundType.values()) {
                if (i == j & lowerType == OPEN & upperType == OPEN) {
                  continue;
                }
                builder.add(Range.range(i, lowerType, j, upperType));
              }
            }
          }
        }
        RANGES = builder.build();
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 30.1K bytes
    - Viewed (0)
  4. tests/test_dependency_yield_scope_websockets.py

        await websocket.send_json(
            {"func_is_open": function_session.open, "req_is_open": request_session.open}
        )
    
    
    @app.websocket("/sub")
    async def get_sub(websocket: WebSocket, sessions: NamedSessionsDep) -> Any:
        await websocket.accept()
        await websocket.send_json(
            {"named_session_open": sessions[0].open, "session_open": sessions[1].open}
        )
    
    
    @app.websocket("/named-function-scope")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 6K bytes
    - Viewed (0)
  5. tests/test_dependency_after_yield_websockets.py

    from fastapi.testclient import TestClient
    
    
    class Session:
        def __init__(self) -> None:
            self.data = ["foo", "bar", "baz"]
            self.open = True
    
        def __iter__(self) -> Generator[str, None, None]:
            for item in self.data:
                if self.open:
                    yield item
                else:
                    raise ValueError("Session closed")
    
    
    @contextmanager
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 2K bytes
    - Viewed (0)
  6. tests/test_dependency_yield_scope.py

            yield json.dumps(
                {"func_is_open": function_session.open, "req_is_open": request_session.open}
            )
    
        return StreamingResponse(iter_data())
    
    
    @app.get("/sub")
    def get_sub(sessions: NamedSessionsDep) -> Any:
        def iter_data():
            yield json.dumps(
                {"named_session_open": sessions[0].open, "session_open": sessions[1].open}
            )
    
        return StreamingResponse(iter_data())
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_request_files/test_tutorial003.py

        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
        path2 = tmp_path / "test2.txt"
        path2.write_bytes(b"<file content2>")
    
        client = TestClient(app)
        with path.open("rb") as file, path2.open("rb") as file2:
            response = client.post(
                "/files/",
                files=(
                    ("files", ("test.txt", file)),
                    ("files", ("test2.txt", file2)),
                ),
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_request_files/test_tutorial001.py

                    "input": None,
                }
            ]
        }
    
    
    def test_post_file(tmp_path, client: TestClient):
        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
    
        with path.open("rb") as file:
            response = client.post("/files/", files={"file": file})
        assert response.status_code == 200, response.text
        assert response.json() == {"file_size": 14}
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  9. okhttp-sse/src/main/kotlin/okhttp3/sse/EventSourceListener.kt

       * events.
       */
      open fun onOpen(
        eventSource: EventSource,
        response: Response,
      ) {
      }
    
      open fun onEvent(
        eventSource: EventSource,
        id: String?,
        type: String?,
        data: String,
      ) {
      }
    
      /**
       * No further calls to this listener will be made.
       */
      open fun onClosed(eventSource: EventSource) {
      }
    
      /**
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Oct 03 07:51:20 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  10. okhttp-testing-support/src/main/kotlin/okhttp3/EventRecorder.kt

        } else {
          eventsForMatching.forEach loop@{
            when (e.closes(it)) {
              null -> return // no open event
              true -> return // found open event
              false -> return@loop // this is not the open event so continue
            }
          }
          fail<Any>("event $e without matching start event")
        }
      }
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 4.5K bytes
    - Viewed (0)
Back to top