这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@sumanrox
Copy link

@sumanrox sumanrox commented Nov 5, 2025

Implemented new flags to filter and match HTTP responses based on Content-Type header:

  • -mct: Match responses with specific Content-Type (show only these)
  • -fct: Filter responses with specific Content-Type (hide these)

Features:

  • Exact match: application/json, text/plain, text/html
  • Wildcard support: application/, text/, image/*
  • Substring match: json, xml, plain
  • 'all' keyword: matches any content-type
  • Comma-separated list support for multiple values
  • Automatic charset parameter stripping (e.g., '; charset=utf-8')
  • Case-insensitive matching

Interactive mode support:

  • fct [value]: Set content-type filter
  • afct [value]: Append to content-type filter

Implemented new flags to filter and match HTTP responses based on Content-Type header:
- -mct: Match responses with specific Content-Type (show only these)
- -fct: Filter responses with specific Content-Type (hide these)

Features:
- Exact match: application/json, text/plain, text/html
- Wildcard support: application/*, text/*, image/*
- Substring match: json, xml, plain
- 'all' keyword: matches any content-type
- Comma-separated list support for multiple values
- Automatic charset parameter stripping (e.g., '; charset=utf-8')
- Case-insensitive matching

Interactive mode support:
- fct [value]: Set content-type filter
- afct [value]: Append to content-type filter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant