Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 651 for return (0.17 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

      return substring(start, end)
    }
    
    /**
     * Returns the index of the first character in this string that contains a character in
     * [delimiters]. Returns endIndex if there is no such character.
     */
    fun String.delimiterOffset(
      delimiters: String,
      startIndex: Int = 0,
      endIndex: Int = length,
    ): Int {
      for (i in startIndex until endIndex) {
        if (this[i] in delimiters) return i
      }
      return endIndex
    }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/custom-response.md

    # Custom Response - HTML, Stream, File, others
    
    By default, **FastAPI** will return the responses using `JSONResponse`.
    
    You can override it by returning a `Response` directly as seen in [Return a Response directly](response-directly.md){.internal-link target=_blank}.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/connection/RouteSelector.kt

          val uri = url.toUri()
          if (uri.host == null) return immutableListOf(Proxy.NO_PROXY)
    
          // Try each of the ProxySelector choices until one connection succeeds.
          val proxiesOrNull = address.proxySelector.select(uri)
          if (proxiesOrNull.isNullOrEmpty()) return immutableListOf(Proxy.NO_PROXY)
    
          return proxiesOrNull.toImmutableList()
        }
    
        connectionUser.proxySelectStart(url)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Mar 06 17:33:38 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  4. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirSymbolContainingDeclarationProvider.kt

                    return false
                }
            }
    
            val firSymbol = symbol.firSymbol
            if (firSymbol is FirPropertySymbol && firSymbol.isForeignValue) {
                return false
            }
    
            return true
        }
    
        fun getContainingDeclarationByPsi(symbol: KtSymbol): KtDeclarationSymbol? {
            val containingDeclaration = getContainingPsi(symbol) ?: return null
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 19 11:06:47 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt

      } finally {
        currentThread.name = oldName
      }
    }
    
    /** Returns the Content-Length as reported by the response headers. */
    internal fun Response.headersContentLength(): Long {
      return headers["Content-Length"]?.toLongOrDefault(-1L) ?: -1L
    }
    
    /** Returns an immutable copy of this. */
    internal fun <T> List<T>.toImmutableList(): List<T> {
      return Collections.unmodifiableList(toMutableList())
    }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  6. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirDataFlowInfoProvider.kt

            val expressionCall = binaryExpression.getOrBuildFirSafe<FirQualifiedAccessExpression>(firResolveSession) ?: return null
            val receiverCall = expressionCall.explicitReceiver as? FirQualifiedAccessExpression ?: return null
    
            return receiverCall.resolvedType
        }
    
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Apr 16 06:40:43 GMT 2024
    - 22.9K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheInterceptor.kt

              result.addLenient(fieldName, networkHeaders.value(index))
            }
          }
    
          return result.build()
        }
    
        /**
         * Returns true if [fieldName] is an end-to-end HTTP header, as defined by RFC 2616,
         * 13.5.1.
         */
        private fun isEndToEnd(fieldName: String): Boolean {
          return !"Connection".equals(fieldName, ignoreCase = true) &&
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Mar 22 07:09:21 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  8. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirCallResolver.kt

            if (this !is KtExpression) return null
            val calleeExpression = deparenthesize(this) ?: return null
            if (calleeExpression is KtCallExpression) return null
            val callExpression = parentOfType<KtCallExpression>() ?: return null
            if (deparenthesize(callExpression.calleeExpression) != calleeExpression) return null
            return callExpression
        }
    
        /**
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 18:05:58 GMT 2024
    - 70.8K bytes
    - Viewed (1)
  9. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt

              }
            }
          }
    
        return BasicDerAdapter(
          name = name,
          tagClass = DerHeader.TAG_CLASS_UNIVERSAL,
          tag = 16L,
          codec = codec,
        )
      }
    
      /** Returns an adapter that decodes as the first of a list of available types. */
      fun choice(vararg choices: DerAdapter<*>): DerAdapter<Pair<DerAdapter<*>, Any?>> {
        return object : DerAdapter<Pair<DerAdapter<*>, Any?>> {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

          if (queryNamesAndValues == null) return emptySet()
          val result = LinkedHashSet<String>()
          for (i in 0 until queryNamesAndValues.size step 2) {
            result.add(queryNamesAndValues[i]!!)
          }
          return result.readOnly()
        }
    
      /**
       * Returns all values for the query parameter `name` ordered by their appearance in this
       * URL. For example this returns `["banana"]` for `queryParameterValue("b")` on
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 63.5K bytes
    - Viewed (1)
Back to top