MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / applyMaxSrcFileSizeOption

Method applyMaxSrcFileSizeOption

options/parser/apply.go:505–511  ·  view source on GitHub ↗
(ctx context.Context, o *options.Options, args []string)

Source from the content-addressed store, hash-verified

503}
504
505func (p *Parser) applyMaxSrcFileSizeOption(ctx context.Context, o *options.Options, args []string) error {
506 if err := p.IsSecurityOptionsAllowed(ctx); err != nil {
507 return err
508 }
509
510 return p.parseInt(ctx, o, keys.MaxSrcFileSize, args...)
511}
512
513func (p *Parser) applyMaxAnimationFramesOption(ctx context.Context, o *options.Options, args []string) error {
514 if err := p.IsSecurityOptionsAllowed(ctx); err != nil {

Callers 1

applyURLOptionMethod · 0.95

Calls 2

parseIntMethod · 0.95

Tested by

no test coverage detected