Help for this page

Select Code to Download


  1. or download this
    use HTTP::Request;
    
  2. or download this
    BEGIN {
        use HTTP::Request;
        $HTTP::Headers::TRANSLATE_UNDERSCORE = 0;
    }
    
  3. or download this
    #!/usr/bin/env perl -l
    
    ...
    my $header = $r->header('__X_Y__', 1);
    
    dd $r;
    
  4. or download this
    bless({
      _content => "",
    ...
      _method  => undef,
      _uri     => undef,
    }, "HTTP::Request")
    
  5. or download this
    bless({
      _content => "",
    ...
      _method  => undef,
      _uri     => undef,
    }, "HTTP::Request")
    
  6. or download this
    ...
    # The $TRANSLATE_UNDERSCORE variable controls whether '_' can be used
    ...
    ...
    $field =~ tr/_/-/ if $TRANSLATE_UNDERSCORE;
    ...