class
Crowbar::Rules::HTTPRule
- Crowbar::Rules::HTTPRule
- Crowbar::Rule
- Reference
- Object
Overview
Structure-preserving rule for HTTP/1.x messages. Parses Start Line, Headers, and Body, maintaining proper CRLF line framing while mutating paths, query parameters, header values, or body content.
Defined in:
crowbar/rules/http.crConstructors
Instance Method Summary
-
#apply(context : Context, buffer : Buffer) : Bool
Applies a structure-preserving transformation to the buffer
- #body_rule(rule : Rule)
- #body_rule(format : Symbol)
- #body_rule : Rule | Nil
- #body_rule=(body_rule : Rule | Nil)
- #description : String
-
#match?(buffer : Buffer) : Bool
Checks whether the buffer matches the format handled by this rule
- #name : String
- #sync_content_length=(sync_content_length : Bool)
- #sync_content_length? : Bool
- #targets : Array(Symbol)
-
#targets(*targets : Symbol)
Optional target filtering for format rules supporting selective mutation
- #targets=(targets : Array(Symbol))
Instance methods inherited from class Crowbar::Rule
apply(context : Context, buffer : Buffer) : Bool
apply,
description : String
description,
match?(buffer : Buffer) : Bool
match?,
name : String
name,
targets(*targets : Symbol)
targets,
weight : Float64
weight,
weight=(weight : Float64)
weight=
Constructor methods inherited from class Crowbar::Rule
new(weight : Float64 = 1.0)
new
Constructor Detail
Instance Method Detail
Description copied from class Crowbar::Rule
Applies a structure-preserving transformation to the buffer
Description copied from class Crowbar::Rule
Checks whether the buffer matches the format handled by this rule
def targets(*targets : Symbol)
#
Description copied from class Crowbar::Rule
Optional target filtering for format rules supporting selective mutation