Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 29 for requestFile (0.22 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http/RequestLine.kt

     * limitations under the License.
     */
    package okhttp3.internal.http
    
    import java.net.HttpURLConnection
    import java.net.Proxy
    import okhttp3.HttpUrl
    import okhttp3.Request
    
    object RequestLine {
      /**
       * Returns the request status line, like "GET / HTTP/1.1". This is exposed to the application by
       * [HttpURLConnection.getHeaderFields], so it needs to be set even if the transport is
       * HTTP/2.
       */
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/mylasta/action/FessLabels.java

        public static final String LABELS_esreq_request_file = "{labels.esreq_request_file}";
    
        /** The key of the message: Request File */
        public static final String LABELS_REQUEST_FILE = "{labels.requestFile}";
    
        /** The key of the message: Send */
        public static final String LABELS_esreq_button_upload = "{labels.esreq_button_upload}";
    
        /** The key of the message: No match */
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Mar 22 11:58:34 UTC 2024
    - 146.4K bytes
    - Viewed (0)
  3. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/RecordedRequest.kt

          }
        } else {
          this.handshake = null
        }
    
        if (requestLine.isNotEmpty()) {
          val methodEnd = requestLine.indexOf(' ')
          val pathEnd = requestLine.indexOf(' ', methodEnd + 1)
          this.method = requestLine.substring(0, methodEnd)
          var path = requestLine.substring(methodEnd + 1, pathEnd)
          if (!path.startsWith("/")) {
            path = "/"
          }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        assertContent("this response comes via SSL", response)
        val failHandshakeRequest = server.takeRequest()
        assertThat(failHandshakeRequest.requestLine).isEmpty()
        val fallbackRequest = server.takeRequest()
        assertThat(fallbackRequest.requestLine).isEqualTo("GET /foo HTTP/1.1")
        assertThat(fallbackRequest.handshake?.tlsVersion).isIn(TlsVersion.TLS_1_2, TlsVersion.TLS_1_3)
      }
    
      @Test
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  5. mockwebserver/src/main/kotlin/mockwebserver3/RecordedRequest.kt

          }
        } else {
          this.handshake = null
          this.handshakeServerNames = listOf()
        }
    
        if (requestLine.isNotEmpty()) {
          val methodEnd = requestLine.indexOf(' ')
          val pathEnd = requestLine.indexOf(' ', methodEnd + 1)
          this.method = requestLine.substring(0, methodEnd)
          var path = requestLine.substring(methodEnd + 1, pathEnd)
          if (!path.startsWith("/")) {
            path = "/"
          }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  6. mockwebserver/src/main/kotlin/mockwebserver3/QueueDispatcher.kt

      override fun dispatch(request: RecordedRequest): MockResponse {
        // To permit interactive/browser testing, ignore requests for favicons.
        val requestLine = request.requestLine
        if (requestLine == "GET /favicon.ico HTTP/1.1") {
          logger.info("served $requestLine")
          return MockResponse(code = HttpURLConnection.HTTP_NOT_FOUND)
        }
    
        if (failFastResponse != null && responseQueue.peek() == null) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

       * the proper value.
       */
      override fun writeRequestHeaders(request: Request) {
        val requestLine = RequestLine.get(request, carrier.route.proxy.type())
        writeRequest(request.headers, requestLine)
      }
    
      override fun reportedContentLength(response: Response): Long {
        return when {
          !response.promisesBody() -> 0L
          response.isChunked -> -1L
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

        val request = server.takeRequest()
        assertThat(request.requestLine).isEqualTo("GET /foo HTTP/1.1")
        assertThat(request.headers[":scheme"]).isEqualTo(scheme)
        assertThat(request.headers[":authority"]).isEqualTo(
          server.hostName + ":" + server.port,
        )
        val pushedRequest = server.takeRequest()
        assertThat(pushedRequest.requestLine).isEqualTo("GET /foo/bar HTTP/1.1")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 75.3K bytes
    - Viewed (0)
  9. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/KotlinSourceModernTest.kt

            0,
            Socket(),
          )
        recordedRequest = RecordedRequest("", headersOf(), listOf(), 0L, Buffer(), 0, Socket())
        var requestUrl: HttpUrl? = recordedRequest.requestUrl
        var requestLine: String = recordedRequest.requestLine
        var method: String? = recordedRequest.method
        var path: String? = recordedRequest.path
        var headers: Headers = recordedRequest.headers
        val header: String? = recordedRequest.getHeader("")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  10. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/DeprecationBridge.kt

        path = path,
        headers = headers,
        response = response.wrap(),
      )
    }
    
    internal fun mockwebserver3.RecordedRequest.unwrap(): RecordedRequest {
      return RecordedRequest(
        requestLine = requestLine,
        headers = headers,
        chunkSizes = chunkSizes,
        bodySize = bodySize,
        body = body,
        sequenceNumber = sequenceNumber,
        failure = failure,
        method = method,
        path = path,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top