亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? headers.pm

?? ARM上的如果你對底層感興趣
?? PM
?? 第 1 頁 / 共 2 頁
字號:
=item $h->clone

Returns a copy of this HTTP::Headers object.

=back

=head1 CONVENIENCE METHODS

The most frequently used headers can also be accessed through the
following convenience methods.  These methods can both be used to read
and to set the value of a header.  The header value is set if you pass
an argument to the method.  The old header value is always returned.

Methods that deal with dates/times always convert their value to system
time (seconds since Jan 1, 1970) and they also expect this kind of
value when the header value is set.

=over 4

=item $h->date

This header represents the date and time at which the message was
originated. I<E.g.>:

  $h->date(time);  # set current date

=item $h->expires

This header gives the date and time after which the entity should be
considered stale.

=item $h->if_modified_since

=item $h->if_unmodified_since

This header is used to make a request conditional.  If the requested
resource has (not) been modified since the time specified in this field,
then the server will return a C<"304 Not Modified"> response instead of
the document itself.

=item $h->last_modified

This header indicates the date and time at which the resource was last
modified. I<E.g.>:

  # check if document is more than 1 hour old
  if ($h->last_modified < time - 60*60) {
	...
  }

=item $h->content_type

The Content-Type header field indicates the media type of the message
content. I<E.g.>:

  $h->content_type('text/html');

The value returned will be converted to lower case, and potential
parameters will be chopped off and returned as a separate value if in
an array context.  This makes it safe to do the following:

  if ($h->content_type eq 'text/html') {
     # we enter this place even if the real header value happens to
     # be 'TEXT/HTML; version=3.0'
     ...
  }

=item $h->content_encoding

The Content-Encoding header field is used as a modifier to the
media type.  When present, its value indicates what additional
encoding mechanism has been applied to the resource.

=item $h->content_length

A decimal number indicating the size in bytes of the message content.

=item $h->content_language

The natural language(s) of the intended audience for the message
content.  The value is one or more language tags as defined by RFC
1766.  Eg. "no" for Norwegian and "en-US" for US-English.

=item $h->title

The title of the document.  In libwww-perl this header will be
initialized automatically from the E<lt>TITLE>...E<lt>/TITLE> element
of HTML documents.  I<This header is no longer part of the HTTP
standard.>

=item $h->user_agent

This header field is used in request messages and contains information
about the user agent originating the request.  I<E.g.>:

  $h->user_agent('Mozilla/1.2');

=item $h->server

The server header field contains information about the software being
used by the originating server program handling the request.

=item $h->from

This header should contain an Internet e-mail address for the human
user who controls the requesting user agent.  The address should be
machine-usable, as defined by RFC822.  E.g.:

  $h->from('Gisle Aas <aas@sn.no>');

=item $h->referer

Used to specify the address (URI) of the document from which the
requested resouce address was obtained.

=item $h->www_authenticate

This header must be included as part of a "401 Unauthorized" response.
The field value consist of a challenge that indicates the
authentication scheme and parameters applicable to the requested URI.

=item $h->proxy_authenticate

This header must be included in a "407 Proxy Authentication Required"
response.

=item $h->authorization

=item $h->proxy_authorization

A user agent that wishes to authenticate itself with a server or a
proxy, may do so by including these headers.

=item $h->authorization_basic

This method is used to get or set an authorization header that use the
"Basic Authentication Scheme".  In array context it will return two
values; the user name and the password.  In scalar context it will
return I<"uname:password"> as a single string value.

When used to set the header value, it expects two arguments.  I<E.g.>:

  $h->authorization_basic($uname, $password);

The method will croak if the $uname contains a colon ':'.

=item $h->proxy_authorization_basic

Same as authorization_basic() but will set the "Proxy-Authorization"
header instead.

=back

=head1 COPYRIGHT

Copyright 1995-1998 Gisle Aas.

This library is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.

=cut

1;

#__DATA__

sub clone
{
    my $self = shift;
    my $clone = new HTTP::Headers;
    $self->scan(sub { $clone->push_header(@_);} );
    $clone;
}

sub push_header
{
    Carp::croak('Usage: $h->push_header($field, $val)') if @_ != 3;
    shift->_header(@_, 'PUSH');
}


sub remove_header
{
    my($self, @fields) = @_;
    my $field;
    foreach $field (@fields) {
	$field =~ tr/_/-/ if $TRANSLATE_UNDERSCORE;
	delete $self->{lc $field};
    }
}

# Convenience access functions

sub _date_header
{
    require HTTP::Date;
    my($self, $header, $time) = @_;
    my($old) = $self->_header($header);
    if (defined $time) {
	$self->_header($header, HTTP::Date::time2str($time));
    }
    HTTP::Date::str2time($old);
}

sub date                { shift->_date_header('Date',                @_); }
sub expires             { shift->_date_header('Expires',             @_); }
sub if_modified_since   { shift->_date_header('If-Modified-Since',   @_); }
sub if_unmodified_since { shift->_date_header('If-Unmodified-Since', @_); }
sub last_modified       { shift->_date_header('Last-Modified',       @_); }

# This is used as a private LWP extention.  The Client-Date header is
# added as a timestamp to a response when it has been received.
sub client_date         { shift->_date_header('Client-Date',         @_); }

# The retry_after field is dual format (can also be a expressed as
# number of seconds from now), so we don't provide an easy way to
# access it until we have know how both these interfaces can be
# addressed.  One possibility is to return a negative value for
# relative seconds and a positive value for epoch based time values.
#sub retry_after       { shift->_date_header('Retry-After',       @_); }

sub content_type      {
  my $ct = (shift->_header('Content-Type', @_))[0];
  return '' unless defined($ct) && length($ct);
  my @ct = split(/\s*;\s*/, lc($ct));
  wantarray ? @ct : $ct[0];
}

sub title             { (shift->_header('Title',            @_))[0] }
sub content_encoding  { (shift->_header('Content-Encoding', @_))[0] }
sub content_language  { (shift->_header('Content-Language', @_))[0] }
sub content_length    { (shift->_header('Content-Length',   @_))[0] }

sub user_agent        { (shift->_header('User-Agent',       @_))[0] }
sub server            { (shift->_header('Server',           @_))[0] }

sub from              { (shift->_header('From',             @_))[0] }
sub referer           { (shift->_header('Referer',          @_))[0] }
sub warning           { (shift->_header('Warning',          @_))[0] }

sub www_authenticate  { (shift->_header('WWW-Authenticate', @_))[0] }
sub authorization     { (shift->_header('Authorization',    @_))[0] }

sub proxy_authenticate  { (shift->_header('Proxy-Authenticate',  @_))[0] }
sub proxy_authorization { (shift->_header('Proxy-Authorization', @_))[0] }

sub authorization_basic       { shift->_basic_auth("Authorization",       @_) }
sub proxy_authorization_basic { shift->_basic_auth("Proxy-Authorization", @_) }

sub _basic_auth {
    require MIME::Base64;
    my($self, $h, $user, $passwd) = @_;
    my($old) = $self->_header($h);
    if (defined $user) {
	Carp::croak("Basic authorization user name can't contain ':'")
	  if $user =~ /:/;
	$passwd = '' unless defined $passwd;
	$self->_header($h => 'Basic ' .
                             MIME::Base64::encode("$user:$passwd", ''));
    }
    if (defined $old && $old =~ s/^\s*Basic\s+//) {
	my $val = MIME::Base64::decode($old);
	return $val unless wantarray;
	return split(/:/, $val, 2);
    }
    return;
}

1;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色av成人天堂桃色av| 蜜桃av噜噜一区| 7777精品伊人久久久大香线蕉完整版 | 亚洲色图欧洲色图婷婷| 精品福利av导航| 久久久99免费| 国产日韩亚洲欧美综合| 亚洲国产高清aⅴ视频| 国产精品区一区二区三区| 亚洲国产成人自拍| 亚洲欧美国产高清| 亚洲一区视频在线| 亚洲1区2区3区4区| 久久精品72免费观看| 国模无码大尺度一区二区三区| 精品一区二区日韩| 国产成人午夜高潮毛片| 成人av免费网站| 欧美亚洲一区二区在线观看| 成人黄色软件下载| 欧美午夜片在线观看| 日韩一卡二卡三卡四卡| 日韩片之四级片| 日本一区二区视频在线| 亚洲欧洲中文日韩久久av乱码| 亚洲精品国产成人久久av盗摄 | 中文字幕乱码亚洲精品一区| 亚洲欧美日韩电影| 午夜精品福利久久久| 久久成人精品无人区| 91免费观看视频在线| 日韩一区二区三区av| 久久久一区二区三区捆绑**| 国产精品国产三级国产有无不卡| 亚洲午夜精品17c| 国产黄人亚洲片| 欧美日韩一区三区| 日本一区二区免费在线观看视频| 国产精品剧情在线亚洲| 亚洲成a人v欧美综合天堂下载 | 99久久免费国产| 日韩欧美中文一区二区| 中文字幕亚洲在| 老司机免费视频一区二区三区| 成人18视频日本| 精品卡一卡二卡三卡四在线| 亚洲免费在线播放| 国产精品资源网| 777xxx欧美| 亚洲国产一区在线观看| 成人精品视频一区二区三区| 欧美成人伊人久久综合网| 亚洲1区2区3区4区| 色婷婷综合久久久久中文一区二区| 日韩片之四级片| 亚洲男人的天堂在线aⅴ视频| 国产一区二区三区视频在线播放| 欧美三级韩国三级日本一级| 亚洲天堂精品在线观看| 国产成人亚洲综合色影视| 欧美大片在线观看一区二区| 中文字幕在线播放不卡一区| 国产在线播放一区三区四| 91美女在线视频| 国产精品污污网站在线观看 | 成人短视频下载| 久久久精品tv| 国产美女av一区二区三区| 欧美一级高清片在线观看| 亚洲国产你懂的| 欧美三区免费完整视频在线观看| 亚洲美女免费视频| 高清久久久久久| 国产精品久久久久久久久免费丝袜 | 51久久夜色精品国产麻豆| 亚洲成人7777| 91精品国产综合久久福利软件 | 日韩一区二区麻豆国产| 日本不卡视频一二三区| 欧美精品在欧美一区二区少妇| 一区二区视频在线| 在线精品视频小说1| 亚洲人精品一区| 色婷婷综合久色| 午夜精品久久久久影视| 91日韩在线专区| 亚洲一卡二卡三卡四卡| 欧美高清你懂得| 韩国中文字幕2020精品| 国产精品午夜免费| 在线观看不卡一区| 日韩av不卡在线观看| 4hu四虎永久在线影院成人| 精品亚洲成a人| 中文字幕制服丝袜成人av | 在线播放国产精品二区一二区四区| 亚洲网友自拍偷拍| 日韩欧美在线不卡| 国产乱子伦一区二区三区国色天香| 日韩一区二区三区电影在线观看| 国产乱子伦视频一区二区三区| 国产精品久久午夜夜伦鲁鲁| 色94色欧美sute亚洲线路二 | 日韩中文字幕91| 久久新电视剧免费观看| zzijzzij亚洲日本少妇熟睡| 亚洲自拍偷拍av| 久久久久国产精品免费免费搜索| 成人av资源在线观看| 亚洲成人免费看| 亚洲国产精品激情在线观看| 欧美日韩国产123区| 成人免费高清视频| 污片在线观看一区二区| 国产精品美女久久久久av爽李琼| 欧美日韩国产高清一区二区三区 | 国产福利精品一区| 亚洲第一主播视频| 国产婷婷一区二区| 欧美挠脚心视频网站| 不卡视频在线看| 极品少妇xxxx精品少妇偷拍| 亚洲最新在线观看| 中文字幕中文乱码欧美一区二区| 日韩欧美视频在线| 欧美精品在线视频| 在线中文字幕一区二区| yourporn久久国产精品| 国产福利电影一区二区三区| 免费一级片91| 丝袜美腿成人在线| 亚洲美女屁股眼交3| 中文字幕亚洲精品在线观看| 日韩三级在线免费观看| 在线免费观看成人短视频| 国产69精品一区二区亚洲孕妇 | 亚洲国产成人一区二区三区| 99久久免费精品高清特色大片| 国产揄拍国内精品对白| 日韩成人免费看| 日韩影视精彩在线| 亚洲午夜久久久久久久久电影院| 最新日韩av在线| 亚洲欧美激情在线| 亚洲欧洲一区二区三区| 综合激情成人伊人| 国产精品久久久久久久久动漫| 26uuu亚洲| 国产亚洲自拍一区| 国产午夜精品美女毛片视频| 日韩三级高清在线| 欧美精品一区二| 精品日韩一区二区| 精品国产麻豆免费人成网站| 精品少妇一区二区三区视频免付费 | 国产ts人妖一区二区| 麻豆精品一区二区av白丝在线| 五月天一区二区| 日本vs亚洲vs韩国一区三区二区 | 国产精品国产三级国产aⅴ原创| 久久久国产综合精品女国产盗摄| 久久久美女艺术照精彩视频福利播放| 欧美v日韩v国产v| 国产精品你懂的在线| 久久色成人在线| 久久久久亚洲蜜桃| 国产精品视频yy9299一区| 亚洲美女淫视频| 另类中文字幕网| 国产电影一区在线| 色欧美88888久久久久久影院| 欧美日韩精品免费观看视频| 91.麻豆视频| 国产精品色哟哟网站| 亚洲一区二区三区自拍| 毛片av中文字幕一区二区| 成人免费看片app下载| 91免费版在线| 日韩视频一区在线观看| 国产精品美女视频| 亚洲一本大道在线| 九九九久久久精品| a亚洲天堂av| 91精品国产手机| 亚洲精品在线免费播放| 一级精品视频在线观看宜春院| 奇米影视一区二区三区| av在线这里只有精品| 日韩欧美一区电影| 亚洲精品免费一二三区| 韩国av一区二区三区四区 | 亚洲一区二区欧美| 国产剧情在线观看一区二区| 91麻豆国产精品久久| 91精品国产入口| 亚洲精品国产精品乱码不99 | 日韩欧美精品三级| 亚洲一级二级在线| 成人av网站在线观看| 欧美一区二区视频在线观看2022 |