Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 214 for getSink (0.19 sec)

  1. mockwebserver/src/main/kotlin/mockwebserver3/internal/duplex/RealStream.kt

    internal class RealStream(
      private val http2Stream: Http2Stream,
    ) : Stream {
      override val requestBody = http2Stream.getSource().buffer()
      override val responseBody = http2Stream.getSink().buffer()
    
      override fun cancel() {
        http2Stream.closeLater(ErrorCode.CANCEL)
      }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Dec 31 18:24:52 GMT 2022
    - 1.1K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        val stream2 = connection.newStream(headerEntries("b", "banana"), true)
        connection.writePingAndAwaitPong() // Ensure the GO_AWAY that resets stream2 has been received.
        val sink1 = stream1.getSink().buffer()
        val sink2 = stream2.getSink().buffer()
        sink1.writeUtf8("abc")
        assertFailsWith<IOException> {
          sink2.writeUtf8("abc")
          sink2.flush()
        }.also { expected ->
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 75.4K bytes
    - Viewed (0)
  3. mockwebserver/src/test/java/mockwebserver3/internal/http2/Http2Server.kt

            Header("content-type", "text/plain"),
          )
        stream.writeHeaders(
          responseHeaders = responseHeaders,
          outFinished = false,
          flushHeaders = false,
        )
        val out = stream.getSink().buffer()
        out.writeUtf8("Not found: $path")
        out.close()
      }
    
      private fun serveDirectory(
        stream: Http2Stream,
        files: Array<File>,
      ) {
        val responseHeaders =
          listOf(
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2ExchangeCodec.kt

        } else {
          Protocol.HTTP_2
        }
    
      @Volatile
      private var canceled = false
    
      override fun createRequestBody(
        request: Request,
        contentLength: Long,
      ): Sink {
        return stream!!.getSink()
      }
    
      override fun writeRequestHeaders(request: Request) {
        if (stream != null) return
    
        val hasRequestBody = request.body != null
        val requestHeaders = http2HeadersList(request)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

      /**
       * Returns a sink that can be used to write data to the peer.
       *
       * @throws IllegalStateException if this stream was initiated by the peer and a [writeHeaders] has
       *     not yet been sent.
       */
      fun getSink(): Sink {
        this.withLock {
          check(hasResponseHeaders || isLocallyInitiated) {
            "reply before requesting the sink"
          }
        }
        return sink
      }
    
      /**
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 23.2K bytes
    - Viewed (1)
  6. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

          }
          pushPromises(stream, request, response.pushPromises)
          if (body != null) {
            sleepNanos(bodyDelayNanos)
            val responseBodySink =
              stream.getSink().withThrottlingAndSocketPolicy(
                policy = response,
                disconnectHalfway = response.socketPolicy == DisconnectDuringResponseBody,
                expectedByteCount = body.contentLength,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  7. okhttp-android/src/main/baseline-prof.txt

    HSPLokhttp3/internal/http2/Http2Stream;->checkOutNotClosed$okhttp()V
    HSPLokhttp3/internal/http2/Http2Stream;->getErrorCode$okhttp()Lokhttp3/internal/http2/ErrorCode;
    HSPLokhttp3/internal/http2/Http2Stream;->getSink()Lokio/Sink;
    HSPLokhttp3/internal/http2/Http2Stream;->isLocallyInitiated()Z
    HSPLokhttp3/internal/http2/Http2Stream;->isOpen()Z
    HSPLokhttp3/internal/http2/Http2Stream;->receiveHeaders(Lokhttp3/Headers;Z)V
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Mar 21 11:22:00 GMT 2022
    - 127.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/DfsImpl.java

            else {
                link = path;
            }
    
            if ( log.isTraceEnabled() ) {
                log.trace("Initial link is " + link);
            }
    
            if ( dr == null || !link.equals(dr.getLink()) ) {
                while ( true ) {
                    dr = links.map.get(link);
    
                    if ( dr != null ) {
                        if ( log.isTraceEnabled() ) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Thu Jan 05 13:07:29 GMT 2023
    - 29.1K bytes
    - Viewed (0)
  9. maven-core/src/site/apt/getting-to-container-configured-mojos.apt

    ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    ~~ KIND, either express or implied.  See the License for the
    ~~ specific language governing permissions and limitations
    ~~ under the License.
    
      ---
      Getting to Plexus-configured Mojos
      ---
      John Casey
      ---
      2005-04-29
    
    Abstract
    
      We're moving toward integrating mojos as first-class plexus components, while
    Plain Text
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Jan 30 15:20:35 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  10. tensorflow/c/eager/abstract_op_attrs.h

     public:
      // Returns which subclass is this instance of.
      AbstractOpAttrsKind getKind() const { return kind_; }
      virtual ~AbstractOpAttrs() = default;
    
      // Returns the AbstractFunction as a FunctionDef.
      virtual void GetNameAttrList(
          tensorflow::NameAttrList* name_and_attrs) const = 0;
    
      virtual bool GetInt(absl::string_view, int64_t* result) const = 0;
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed May 26 22:20:27 GMT 2021
    - 2K bytes
    - Viewed (0)
Back to top