Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for ws (0.03 sec)

  1. internal/grid/grid.go

    package grid
    
    import (
    	"context"
    	"crypto/tls"
    	"errors"
    	"fmt"
    	"io"
    	"net"
    	"net/http"
    	"strconv"
    	"strings"
    	"sync"
    	"time"
    
    	"github.com/gobwas/ws"
    	"github.com/gobwas/ws/wsutil"
    )
    
    // ErrDisconnected is returned when the connection to the remote has been lost during the call.
    var ErrDisconnected = RemoteErr("remote disconnected")
    
    const (
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  2. internal/grid/connection.go

    type wsWriter struct {
    	tmp [ws.MaxHeaderSize]byte
    }
    
    // writeMessage writes a message to w without allocations.
    func (ww *wsWriter) writeMessage(w io.Writer, s ws.State, op ws.OpCode, p []byte) error {
    	const fin = true
    	var frame ws.Frame
    	if s.ClientSide() {
    		// We do not need to copy the payload, since we own it.
    		payload := p
    
    		frame = ws.NewFrame(op, fin, payload)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  3. src/cmd/cgo/ast.go

    			if !ok {
    				ast2.Decls[w] = decl
    				w++
    				continue
    			}
    			ws := 0
    			for _, spec := range d.Specs {
    				s, ok := spec.(*ast.ImportSpec)
    				if !ok || s.Path.Value != `"C"` {
    					d.Specs[ws] = spec
    					ws++
    				}
    			}
    			if ws == 0 {
    				continue
    			}
    			d.Specs = d.Specs[0:ws]
    			ast2.Decls[w] = d
    			w++
    		}
    		ast2.Decls = ast2.Decls[0:w]
    	} else {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Oct 14 15:47:06 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  4. internal/config/heal/heal.go

    	if err != nil {
    		return cfg, fmt.Errorf("'heal:max_io' value invalid: %w", err)
    	}
    	if ws := env.Get(EnvDriveWorkers, kvs.GetWithDefault(DriveWorkers, DefaultKVS)); ws != "" {
    		w, err := strconv.Atoi(ws)
    		if err != nil {
    			return cfg, fmt.Errorf("'heal:drive_workers' value invalid: %w", err)
    		}
    		if w < 1 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  5. cmd/admin-handlers-config-kv.go

    	cfg := globalServerConfig.Clone()
    	vars := mux.Vars(r)
    	key := vars["key"]
    
    	var subSys, target string
    	{
    		ws := strings.SplitN(key, madmin.SubSystemSeparator, 2)
    		subSys = ws[0]
    		if len(ws) == 2 {
    			if ws[1] == "" {
    				target = madmin.Default
    			} else {
    				target = ws[1]
    			}
    		}
    	}
    
    	subSysConfigs, err := cfg.GetSubsysInfo(subSys, target, true)
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  6. internal/grid/manager.go

    package grid
    
    import (
    	"context"
    	"errors"
    	"fmt"
    	"io"
    	"net"
    	"net/http"
    	"runtime/debug"
    	"strings"
    	"time"
    
    	"github.com/gobwas/ws"
    	"github.com/gobwas/ws/wsutil"
    	"github.com/google/uuid"
    	"github.com/minio/madmin-go/v3"
    	"github.com/minio/minio/internal/pubsub"
    	"github.com/minio/mux"
    )
    
    const (
    	// apiVersion is a major version of the entire api.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  7. docs/em/docs/advanced/middleware.md

    **FastAPI** 🚚 πŸ“š πŸ› οΈ `fastapi.middleware` πŸͺ πŸ‘†, πŸ‘©β€πŸ’». βœ‹οΈ πŸŒ… πŸ’ͺ πŸ› οΈ πŸ‘Ÿ πŸ”— βšͺ️➑️ πŸ’ƒ.
    
    ///
    
    ## `HTTPSRedirectMiddleware`
    
    πŸ› οΈ πŸ‘ˆ 🌐 πŸ“¨ πŸ“¨ πŸ”œ πŸ‘―β€β™‚οΈ `https` βš–οΈ `wss`.
    
    πŸ™† πŸ“¨ πŸ“¨ `http` βš–οΈ `ws` πŸ”œ ❎ πŸ” βš– ↩️.
    
    ```Python hl_lines="2  6"
    {!../../docs_src/advanced_middleware/tutorial001.py!}
    ```
    
    ## `TrustedHostMiddleware`
    
    πŸ› οΈ πŸ‘ˆ 🌐 πŸ“¨ πŸ“¨ βœ”οΈ β˜‘ βš’ `Host` 🎚, βœ” πŸ’‚β€β™‚ πŸ›‘ πŸ‡ΊπŸ‡ΈπŸ” 🦠 🎚 πŸ‘Š.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. docs/en/docs/advanced/middleware.md

    ///
    
    ## `HTTPSRedirectMiddleware`
    
    Enforces that all incoming requests must either be `https` or `wss`.
    
    Any incoming request to `http` or `ws` will be redirected to the secure scheme instead.
    
    {* ../../docs_src/advanced_middleware/tutorial001.py hl[2,6] *}
    
    ## `TrustedHostMiddleware`
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 16:45:50 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. docs/de/docs/advanced/middleware.md

    ///
    
    ## `HTTPSRedirectMiddleware`
    
    Erzwingt, dass alle eingehenden Requests entweder `https` oder `wss` sein mΓΌssen.
    
    Alle eingehenden Requests an `http` oder `ws` werden stattdessen an das sichere Schema umgeleitet.
    
    ```Python hl_lines="2  6"
    {!../../docs_src/advanced_middleware/tutorial001.py!}
    ```
    
    ## `TrustedHostMiddleware`
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  10. docs/pt/docs/advanced/middleware.md

    ///
    
    ## `HTTPSRedirectMiddleware`
    
    Garante que todas as requisiçáes devem ser `https` ou `wss`.
    
    Qualquer requisição para `http` ou `ws` serÑ redirecionada para o esquema seguro.
    
    {* ../../docs_src/advanced_middleware/tutorial001.py hl[2,6] *}
    
    ## `TrustedHostMiddleware`
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 30 20:00:22 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top