Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 81 for cftype (0.08 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs/es/docs/advanced/strict-content-type.md

    # Chequeo estricto de Content-Type { #strict-content-type-checking }
    
    Por defecto, **FastAPI** usa un chequeo estricto del header `Content-Type` para request bodies JSON, esto significa que las requests JSON deben incluir un header `Content-Type` válido (p. ej. `application/json`) para que el request body se parse como JSON.
    
    ## Riesgo de CSRF { #csrf-risk }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:12:26 GMT 2026
    - 3.4K bytes
    - Click Count (0)
  2. docs/ru/docs/advanced/strict-content-type.md

    # Строгая проверка HTTP-заголовка Content-Type { #strict-content-type-checking }
    
    По умолчанию **FastAPI** использует строгую проверку HTTP-заголовка `Content-Type` для JSON-тел запросов. Это означает, что JSON-запросы должны включать корректный заголовок `Content-Type` (например, `application/json`), чтобы тело запроса было обработано как JSON.
    
    ## Риск CSRF { #csrf-risk }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 5.6K bytes
    - Click Count (0)
  3. compat/maven-model-builder/src/test/resources/poms/validation/missing-type-pom.xml

    Guillaume Nodet <******@****.***> 1729859506 +0200
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 934 bytes
    - Click Count (0)
  4. docs/zh/docs/advanced/strict-content-type.md

    # 严格的 Content-Type 检查 { #strict-content-type-checking }
    
    默认情况下,FastAPI 对 JSON 请求体使用严格的 `Content-Type` 头检查。这意味着,JSON 请求必须包含有效的 `Content-Type` 头(例如 `application/json`),其请求体才会被按 JSON 解析。
    
    ## CSRF 风险 { #csrf-risk }
    
    此默认行为在一个非常特定的场景下,可防御一类跨站请求伪造(CSRF)攻击。
    
    这类攻击利用了浏览器的一个事实:当请求满足以下条件时,浏览器允许脚本在不进行任何 CORS 预检的情况下直接发送请求:
    
    - 没有 `Content-Type` 头(例如使用 `fetch()` 携带 `Blob` 作为 body)
    - 且不发送任何认证凭据。
    
    这种攻击主要在以下情况下相关:
    
    - 应用在本地(如 `localhost`)或内网中运行
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:29:48 GMT 2026
    - 3K bytes
    - Click Count (0)
  5. internal/disk/stat_windows.go

    	}
    
    	info = Info{
    		Total:  uint64(lpTotalNumberOfBytes),
    		Free:   uint64(lpTotalNumberOfFreeBytes),
    		Used:   uint64(lpTotalNumberOfBytes) - uint64(lpTotalNumberOfFreeBytes),
    		FSType: getFSType(path),
    	}
    
    	// Return values of GetDiskFreeSpace()
    	lpSectorsPerCluster := uint32(0)
    	lpBytesPerSector := uint32(0)
    	lpNumberOfFreeClusters := uint32(0)
    	lpTotalNumberOfClusters := uint32(0)
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 4.1K bytes
    - Click Count (0)
  6. internal/disk/stat_linux.go

    	reservedBlocks := s.Bfree - s.Bavail
    	info = Info{
    		Total: uint64(s.Frsize) * (s.Blocks - reservedBlocks),
    		Free:  uint64(s.Frsize) * s.Bavail,
    		Files: s.Files,
    		Ffree: s.Ffree,
    		//nolint:unconvert
    		FSType: getFSType(int64(s.Type)),
    	}
    
    	st := syscall.Stat_t{}
    	err = syscall.Stat(path, &st)
    	if err != nil {
    		return Info{}, err
    	}
    	//nolint:unconvert
    	devID := uint64(st.Dev) // Needed to support multiple GOARCHs
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 4.8K bytes
    - Click Count (0)
  7. internal/s3select/progress.go

    	case lz4Type:
    		r = lz4.NewReader(scannedReader)
    	case s2Type:
    		r = s2.NewReader(scannedReader)
    	case snappyType:
    		r = s2.NewReader(scannedReader, s2.ReaderMaxBlockSize(64<<10))
    	default:
    		return nil, errInvalidCompressionFormat(fmt.Errorf("unknown compression type '%v'", compType))
    	}
    	pr.processedReader = newCountUpReader(r)
    
    	return &pr, nil
    }
    
    type nopReadCloser struct {
    	fn func()
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 22 00:33:43 GMT 2024
    - 4.3K bytes
    - Click Count (0)
  8. cmd/metacache-walk.go

    // The function tries to quit as fast as the context is canceled to avoid further drive IO
    func (s *xlStorage) WalkDir(ctx context.Context, opts WalkDirOptions, wr io.Writer) (err error) {
    	legacyFS := s.fsType != xfs && s.fsType != ext4
    
    	s.RLock()
    	legacy := s.formatLegacy
    	s.RUnlock()
    
    	// Verify if volume is valid and it exists.
    	volumeDir, err := s.getVolDir(opts.Bucket)
    	if err != nil {
    		return err
    	}
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Mon May 26 07:06:43 GMT 2025
    - 12.6K bytes
    - Click Count (0)
  9. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/match/AddMatch.java

    import org.gradle.api.tasks.Input;
    import org.gradle.api.tasks.Internal;
    
    import java.util.Objects;
    
    /**
     * Adds a match for a REST test. For example add the follow where it did not exist prior to running this: "match":{"_type": "foo"}
     */
    public class AddMatch implements RestTestTransformByParentArray {
        private static JsonNodeFactory jsonNodeFactory = JsonNodeFactory.withExactBigDecimals(false);
        private final String matchKey;
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 2.5K bytes
    - Click Count (0)
  10. cmd/setup-type.go

    package cmd
    
    // SetupType - enum for setup type.
    type SetupType int
    
    const (
    	// UnknownSetupType - starts with unknown setup type.
    	UnknownSetupType SetupType = iota
    
    	// FSSetupType - FS setup type enum.
    	FSSetupType
    
    	// ErasureSDSetupType - Erasure single drive setup enum.
    	ErasureSDSetupType
    
    	// ErasureSetupType - Erasure setup type enum.
    	ErasureSetupType
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Oct 25 00:44:15 GMT 2022
    - 1.5K bytes
    - Click Count (0)
Back to Top