Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 97 for handling (0.16 sec)

  1. docs/en/docs/advanced/sub-applications.md

    ## Mounting a **FastAPI** application
    
    "Mounting" means adding a completely "independent" application in a specific path, that then takes care of handling everything under that path, with the _path operations_ declared in that sub-application.
    
    ### Top-level application
    
    First, create the main, top-level, **FastAPI** application, and its *path operations*:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_handling_errors/test_tutorial005.py

    from dirty_equals import IsDict
    from fastapi.testclient import TestClient
    
    from docs_src.handling_errors.tutorial005 import app
    
    client = TestClient(app)
    
    
    def test_post_validation_error():
        response = client.post("/items/", json={"title": "towel", "size": "XL"})
        assert response.status_code == 422, response.text
        assert response.json() == IsDict(
            {
                "detail": [
                    {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  3. istioctl/pkg/xds/client.go

    	}
    	// Use bearer token
    	aud := tokenAudiences
    	isMCP := strings.HasSuffix(opts.Xds, ".googleapis.com") || strings.HasSuffix(opts.Xds, ".googleapis.com:443")
    	if isMCP {
    		// Special credentials handling when using ASM Managed Control Plane.
    		mem, err := getHubMembership(ctx, kubeClient)
    		if err != nil {
    			return nil, fmt.Errorf("failed to query Hub membership: %w", err)
    		}
    		aud = []string{mem.WorkloadIdentityPool}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Dec 19 22:42:42 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/http/Handler.java

    import java.util.Map;
    import java.util.StringTokenizer;
    
    /**
     * A <code>URLStreamHandler</code> used to provide NTLM authentication
     * capabilities to the default HTTP handler.  This acts as a wrapper,
     * handling authentication and passing control to the underlying
     * stream handler.
     */
    public class Handler extends URLStreamHandler {
    
        /**
         * The default HTTP port (<code>80</code>).
         */
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 6.1K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/request-forms.md

    !!! note "Technical Details"
        Data from forms is normally encoded using the "media type" `application/x-www-form-urlencoded`.
    
        But when the form includes files, it is encoded as `multipart/form-data`. You'll read about handling files in the next chapter.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  6. maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/AbstractRepositoryMetadata.java

    import org.apache.maven.artifact.repository.ArtifactRepositoryPolicy;
    import org.apache.maven.metadata.v4.MetadataStaxReader;
    import org.apache.maven.metadata.v4.MetadataStaxWriter;
    
    /**
     * Shared methods of the repository metadata handling.
     *
     */
    @Deprecated
    public abstract class AbstractRepositoryMetadata implements RepositoryMetadata {
        private static final String LS = System.lineSeparator();
    
        private Metadata metadata;
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 7K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/ws/WebSocketRecorder.kt

    class WebSocketRecorder(
      private val name: String,
    ) : WebSocketListener() {
      private val events = LinkedBlockingQueue<Any>()
      private var delegate: WebSocketListener? = null
    
      /** Sets a delegate for handling the next callback to this listener. Cleared after invoked.  */
      fun setNextEventDelegate(delegate: WebSocketListener?) {
        this.delegate = delegate
      }
    
      override fun onOpen(
        webSocket: WebSocket,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/http/Handler.java

    import org.slf4j.LoggerFactory;
    
    import jcifs.CIFSContext;
    
    
    /**
     * A <code>URLStreamHandler</code> used to provide NTLM authentication
     * capabilities to the default HTTP handler. This acts as a wrapper,
     * handling authentication and passing control to the underlying
     * stream handler.
     * 
     * @deprecated {@link NtlmHttpURLConnection} is broken by design.
     */
    @Deprecated
    public class Handler extends URLStreamHandler {
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 6.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/CombinedFuture.java

           * executor keeps it alive). Ideally, nulling out `callable` would be the responsibility of
           * InterruptibleTask itself so that its other subclasses also benefit. (Handling `callable` in
           * InterruptibleTask itself might also eliminate some of the existing boilerplate for, e.g.,
           * pendingToString().)
           */
          CombinedFuture.this.task = null;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  10. internal/http/listener.go

    	"net"
    	"syscall"
    	"time"
    
    	"github.com/minio/minio/internal/deadlineconn"
    )
    
    type acceptResult struct {
    	conn net.Conn
    	err  error
    	lidx int
    }
    
    // httpListener - HTTP listener capable of handling multiple server addresses.
    type httpListener struct {
    	opts        TCPOptions
    	listeners   []net.Listener    // underlying TCP listeners.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 5.6K bytes
    - Viewed (0)
Back to top