view release on metacpan or search on metacpan
- update the "revealjs" library
0.19 2014-12-21T22:39:45Z
- fixed test about that .bmp file return the "image/x-ms-bmp" content-type
0.18 2014-12-21T22:28:49Z
- fixed POD
- thank you for pull-request @sillymoose
view all matches for this distribution
view release on metacpan or search on metacpan
'accept-encoding' => 'gzip'}};
if ($o->{method} eq 'POST') {
push @{$x->{hf}}, qw/Content-Length Content-Type/;
add($x->{hv},
'content-length' => undef,
'content-type' => 'application/x-www-form-urlencoded');
$x->{c} = $o->{'post-data'};
}
my $url = $o->{url};
@$x{qw/protocol request-uri/} = ('http', '/');
($x->{protocol}, $url) = ($1, $2) if $url =~ m|(.*)://(.*)|;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/smtpstatus.pm view on Meta::CPAN
involving the content of the message. These codes report
failures due to translation, transcoding, or otherwise
unsupported message media. Message content or media issues
are under the control of both the sender and the receiver,
both of whom must support a common set of supported
content-types.'
],
['X.7.X', 'Security or Policy Status',
view all matches for this distribution
view release on metacpan or search on metacpan
share/files/public/skins/default/jquery-ui-1.9.1.custom/development-bundle/jquery-1.8.2.js view on Meta::CPAN
match = responseHeaders[ key.toLowerCase() ];
}
return match === undefined ? null : match;
},
// Overrides response content-type header
overrideMimeType: function( type ) {
if ( !state ) {
s.mimeType = type;
}
return this;
share/files/public/skins/default/jquery-ui-1.9.1.custom/development-bundle/jquery-1.8.2.js view on Meta::CPAN
});
/* Handles responses to an ajax request:
* - sets all responseXXX fields accordingly
* - finds the right dataType (mediates between content-type and expected dataType)
* - returns the corresponding response
*/
function ajaxHandleResponses( s, jqXHR, responses ) {
var ct, type, finalDataType, firstDataType,
share/files/public/skins/default/jquery-ui-1.9.1.custom/development-bundle/jquery-1.8.2.js view on Meta::CPAN
if ( type in responses ) {
jqXHR[ responseFields[type] ] = responses[ type ];
}
}
// Remove auto dataType and get content-type in the process
while( dataTypes[ 0 ] === "*" ) {
dataTypes.shift();
if ( ct === undefined ) {
ct = s.mimeType || jqXHR.getResponseHeader( "content-type" );
}
}
// Check if we're dealing with a known content-type
if ( ct ) {
for ( type in contents ) {
if ( contents[ type ] && contents[ type ].test( ct ) ) {
dataTypes.unshift( type );
break;
view all matches for this distribution
view release on metacpan or search on metacpan
{
"name": "status",
"value": "302"
},
{
"name": "content-type",
"value": "text/html; charset=UTF-8"
},
{
"name": "location",
"value": "https://www.google.com.au/?gfe_rd=cr&ei=nwX0WIrDFaPM8gfYsLC4Bw"
{
"name": "x-frame-options",
"value": "SAMEORIGIN"
},
{
"name": "content-type",
"value": "text/html; charset=UTF-8"
},
{
"name": "status",
"value": "200"
],
"cookies": [],
"content": {
"size": 213057,
"mimeType": "text/html",
"text": "<!doctype html><html itemscope=\"\" itemtype=\"http://schema.org/WebPage\" lang=\"en-AU\"><head><meta content=\"/images/branding/googleg/1x/googleg_standard_color_128dp.png\" itemprop=\"image\"><link href=\"/images/branding/produ...
},
"redirectURL": "",
"headersSize": -1,
"bodySize": -1,
"_transferSize": 68060
{
"name": "date",
"value": "Sun, 16 Apr 2017 23:59:44 GMT"
},
{
"name": "x-content-type-options",
"value": "nosniff"
},
{
"name": "last-modified",
"value": "Thu, 08 Dec 2016 01:00:57 GMT"
{
"name": "server",
"value": "sffe"
},
{
"name": "content-type",
"value": "image/png"
},
{
"name": "status",
"value": "200"
{
"name": "content-encoding",
"value": "gzip"
},
{
"name": "x-content-type-options",
"value": "nosniff"
},
{
"name": "last-modified",
"value": "Fri, 14 Apr 2017 22:21:08 GMT"
{
"name": "vary",
"value": "Accept-Encoding"
},
{
"name": "content-type",
"value": "text/javascript; charset=UTF-8"
},
{
"name": "status",
"value": "200"
{
"name": "date",
"value": "Sun, 16 Apr 2017 23:59:44 GMT"
},
{
"name": "x-content-type-options",
"value": "nosniff"
},
{
"name": "last-modified",
"value": "Thu, 08 Dec 2016 01:00:57 GMT"
{
"name": "server",
"value": "sffe"
},
{
"name": "content-type",
"value": "image/png"
},
{
"name": "status",
"value": "200"
{
"name": "date",
"value": "Thu, 13 Apr 2017 21:17:02 GMT"
},
{
"name": "x-content-type-options",
"value": "nosniff"
},
{
"name": "last-modified",
"value": "Mon, 12 Dec 2016 14:45:00 GMT"
{
"name": "vary",
"value": "Origin"
},
{
"name": "content-type",
"value": "image/png"
},
{
"name": "status",
"value": "200"
{
"name": "content-encoding",
"value": "gzip"
},
{
"name": "x-content-type-options",
"value": "nosniff"
},
{
"name": "last-modified",
"value": "Fri, 14 Apr 2017 22:21:08 GMT"
{
"name": "vary",
"value": "Accept-Encoding"
},
{
"name": "content-type",
"value": "text/javascript; charset=UTF-8"
},
{
"name": "status",
"value": "200"
{
"name": "date",
"value": "Thu, 13 Apr 2017 02:02:38 GMT"
},
{
"name": "x-content-type-options",
"value": "nosniff"
},
{
"name": "last-modified",
"value": "Thu, 08 Dec 2016 15:30:00 GMT"
{
"name": "age",
"value": "338226"
},
{
"name": "content-type",
"value": "image/png"
},
{
"name": "status",
"value": "200"
{
"name": "content-encoding",
"value": "gzip"
},
{
"name": "x-content-type-options",
"value": "nosniff"
},
{
"name": "last-modified",
"value": "Tue, 11 Apr 2017 03:14:43 GMT"
{
"name": "vary",
"value": "Accept-Encoding, Origin"
},
{
"name": "content-type",
"value": "text/javascript; charset=UTF-8"
},
{
"name": "status",
"value": "200"
{
"name": "content-encoding",
"value": "gzip"
},
{
"name": "x-content-type-options",
"value": "nosniff"
},
{
"name": "last-modified",
"value": "Thu, 09 Mar 2017 15:29:16 GMT"
{
"name": "vary",
"value": "Accept-Encoding"
},
{
"name": "content-type",
"value": "text/javascript; charset=UTF-8"
},
{
"name": "status",
"value": "200"
{
"name": "date",
"value": "Sun, 16 Apr 2017 23:59:44 GMT"
},
{
"name": "x-content-type-options",
"value": "nosniff"
},
{
"name": "last-modified",
"value": "Wed, 14 Dec 2016 20:30:00 GMT"
{
"name": "server",
"value": "sffe"
},
{
"name": "content-type",
"value": "image/png"
},
{
"name": "status",
"value": "200"
{
"name": "x-frame-options",
"value": "SAMEORIGIN"
},
{
"name": "content-type",
"value": "text/html; charset=UTF-8"
},
{
"name": "status",
"value": "204"
{
"name": "date",
"value": "Mon, 17 Apr 2017 00:00:42 GMT"
},
{
"name": "x-content-type-options",
"value": "nosniff"
},
{
"name": "last-modified",
"value": "Thu, 21 Apr 2016 03:17:22 GMT"
{
"name": "server",
"value": "sffe"
},
{
"name": "content-type",
"value": "image/gif"
},
{
"name": "status",
"value": "200"
{
"name": "date",
"value": "Mon, 17 Apr 2017 00:00:42 GMT"
},
{
"name": "x-content-type-options",
"value": "nosniff"
},
{
"name": "last-modified",
"value": "Thu, 21 Apr 2016 03:17:22 GMT"
{
"name": "server",
"value": "sffe"
},
{
"name": "content-type",
"value": "image/gif"
},
{
"name": "status",
"value": "200"
view all matches for this distribution
view release on metacpan or search on metacpan
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Argv Module</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:root@localhost" />
</head>
<body style="background-color: white">
view all matches for this distribution
view release on metacpan or search on metacpan
Lookup.html view on Meta::CPAN
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:aks@somewhere.local" />
</head>
<body style="background-color: white">
view all matches for this distribution
view release on metacpan or search on metacpan
Articulate is an expression of the idea that your content management solution is foremost an API:
- it should not place arbitrary restrictions on the front end
- it should not place arbitrary restrictions on role of the content (blog, issue tracker, wiki)
- it should not place arbitrary restrictions on the content-types you want to host, or how you want to edit them
- it should not force you into a url schema you don't want.
- It should be easy to add an Articulate component to a project with other functions.
## Qs
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AsposeBarCodeCloud/ApiClient.pm view on Meta::CPAN
return join(',', @header);
}
}
# return the content type based on an array of content-type provided
# @param [Array] content_type_array Array fo content-type
# @return String Content-Type (e.g. application/json)
sub select_header_content_type
{
my ($self, @header) = @_;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AsposeCellsCloud/ApiClient.pm view on Meta::CPAN
return join(',', @header);
}
}
# return the content type based on an array of content-type provided
# @param [Array] content_type_array Array fo content-type
# @return String Content-Type (e.g. application/json)
sub select_header_content_type
{
my ($self, @header) = @_;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AsposeDiagramCloud/ApiClient.pm view on Meta::CPAN
return join(',', @header);
}
}
# return the content type based on an array of content-type provided
# @param [Array] content_type_array Array fo content-type
# @return String Content-Type (e.g. application/json)
sub select_header_content_type
{
my ($self, @header) = @_;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AsposeEmailCloud/ApiClient.pm view on Meta::CPAN
return join(',', @header);
}
}
# return the content type based on an array of content-type provided
# @param [Array] content_type_array Array fo content-type
# @return String Content-Type (e.g. application/json)
sub select_header_content_type
{
my ($self, @header) = @_;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AsposeImagingCloud/ApiClient.pm view on Meta::CPAN
return join(',', @header);
}
}
# return the content type based on an array of content-type provided
# @param [Array] content_type_array Array fo content-type
# @return String Content-Type (e.g. application/json)
sub select_header_content_type
{
my ($self, @header) = @_;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AsposeOcrCloud/ApiClient.pm view on Meta::CPAN
return join(',', @header);
}
}
# return the content type based on an array of content-type provided
# @param [Array] content_type_array Array fo content-type
# @return String Content-Type (e.g. application/json)
sub select_header_content_type
{
my ($self, @header) = @_;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AsposePdfCloud/ApiClient.pm view on Meta::CPAN
return join(',', @header);
}
}
# return the content type based on an array of content-type provided
# @param [Array] content_type_array Array fo content-type
# @return String Content-Type (e.g. application/json)
sub select_header_content_type
{
my ($self, @header) = @_;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AsposeSlidesCloud/ApiClient.pm view on Meta::CPAN
return join(',', @header);
}
}
# return the content type based on an array of content-type provided
# @param [Array] content_type_array Array fo content-type
# @return String Content-Type (e.g. application/json)
sub select_header_content_type
{
my ($self, @header) = @_;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AsposeStorageCloud/ApiClient.pm view on Meta::CPAN
return join(',', @header);
}
}
# return the content type based on an array of content-type provided
# @param [Array] content_type_array Array fo content-type
# @return String Content-Type (e.g. application/json)
sub select_header_content_type
{
my ($self, @header) = @_;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AsposeTasksCloud/ApiClient.pm view on Meta::CPAN
return join(',', @header);
}
}
# return the content type based on an array of content-type provided
# @param [Array] content_type_array Array fo content-type
# @return String Content-Type (e.g. application/json)
sub select_header_content_type
{
my ($self, @header) = @_;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AsposeThreeDCloud/ApiClient.pm view on Meta::CPAN
return join(',', @header);
}
}
# return the content type based on an array of content-type provided
# @param [Array] content_type_array Array fo content-type
# @return String Content-Type (e.g. application/json)
sub select_header_content_type
{
my ($self, @header) = @_;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AsposeWordsCloud/ApiClient.pm view on Meta::CPAN
return join(',', @header);
}
}
# return the content type based on an array of content-type provided
# @param [Array] content_type_array Array fo content-type
# @return String Content-Type (e.g. application/json)
sub select_header_content_type
{
my ($self, @header) = @_;
view all matches for this distribution
view release on metacpan or search on metacpan
# declare file name
my $file_name;
if ( ${$reply}{"_rc"} eq 200 ) {
if ( ${${$reply}{"_headers"}}{"content-type"}
eq "application/octet-stream" ) {
# mangle filename from $ENV and returned unique(?) filename
$file_name = ${${$reply}{"_headers"}}{"content-disposition"};
my $start_index = index( $file_name, q/"/ );
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Astro/SpaceTrack.pm view on Meta::CPAN
content_source value of C<'mccants'>.
If the C<content_type()> method returns C<'search'>, you can expect a
content-source value of C<'spacetrack'>.
For any other values of content-type (e.g. C<'get'>, C<'help'>), the
expected values are undefined. In fact, you will probably literally get
undef, but the author does not commit even to this.
If the response object is not provided, it returns the data source
from the last method call that returned an HTTP::Response object.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Async/MicroserviceReq.pm view on Meta::CPAN
my %headers_as_hash = map {defined($_) ? lc($_) : $_} @$headers;
my $content_type;
if ($self->want_json # json wanted via accept headerts
&& !ref($payload) # payload not a reference
&& !$headers_as_hash{'content-type'} # and content type is not forced (statics for example)
) {
if ($status < 400) {
$payload = {'data' => $payload};
}
else {
lib/Async/MicroserviceReq.pm view on Meta::CPAN
$payload = $json->encode('failed to serialize json: ' . $_);
};
}
push(@$headers, ('Content-Type' => ($content_type || 'text/plain')))
unless ($headers_as_hash{'content-type'});
return $self->plack_respond->([$status, [@no_cache_headers, @$headers], [$payload]]);
}
sub redirect {
view all matches for this distribution
view release on metacpan or search on metacpan
{ defined $req->{headers} ? ( headers => $req->{headers} ) : () } );
#~ use Data::Dump;
#~ warn $url . ( defined $req->{content} && keys %{ $req->{content} } ? '?' . _build_query_string( $req->{content} ) : '' );
#~ ddx $res;
$res->{content} = decode_json $res->{content} if $res->{content} && $res->{headers}{'content-type'} =~ m[application/json];
$res->{content} = At::Error->new( message => $res->{content}{message}, fatal => 1 ) unless $res->{success};
wantarray ? ( $res->{content}, $res->{headers} ) : $res->{content};
}
method post ( $url, $req = () ) {
$url,
{ defined $req->{headers} ? ( headers => $req->{headers} ) : (),
defined $req->{content} ? ( content => ref $req->{content} ? encode_json $req->{content} : $req->{content} ) : ()
}
);
$res->{content} = decode_json $res->{content} if $res->{content} && $res->{headers}{'content-type'} =~ m[application/json];
$res->{content} = At::Error->new( message => $res->{content}{message}, fatal => 1 ) unless $res->{success};
wantarray ? ( $res->{content}, $res->{headers} ) : $res->{content};
}
method websocket ( $url, $req = () ) {...}
view all matches for this distribution
view release on metacpan or search on metacpan
examples/js/jquery-1.9.1.js view on Meta::CPAN
requestHeaders[ name ] = value;
}
return this;
},
// Overrides response content-type header
overrideMimeType: function( type ) {
if ( !state ) {
s.mimeType = type;
}
return this;
examples/js/jquery-1.9.1.js view on Meta::CPAN
}
});
/* Handles responses to an ajax request:
* - sets all responseXXX fields accordingly
* - finds the right dataType (mediates between content-type and expected dataType)
* - returns the corresponding response
*/
function ajaxHandleResponses( s, jqXHR, responses ) {
var firstDataType, ct, finalDataType, type,
contents = s.contents,
examples/js/jquery-1.9.1.js view on Meta::CPAN
if ( type in responses ) {
jqXHR[ responseFields[type] ] = responses[ type ];
}
}
// Remove auto dataType and get content-type in the process
while( dataTypes[ 0 ] === "*" ) {
dataTypes.shift();
if ( ct === undefined ) {
ct = s.mimeType || jqXHR.getResponseHeader("Content-Type");
}
}
// Check if we're dealing with a known content-type
if ( ct ) {
for ( type in contents ) {
if ( contents[ type ] && contents[ type ].test( ct ) ) {
dataTypes.unshift( type );
break;
view all matches for this distribution
view release on metacpan or search on metacpan
public/javascripts/jquery.js view on Meta::CPAN
false&&n==="GET"){var r=J(),u=e.url.replace(wb,"$1_="+r+"$2");e.url=u+(u===e.url?(ka.test(e.url)?"&":"?")+"_="+r:"")}if(e.data&&n==="GET")e.url+=(ka.test(e.url)?"&":"?")+e.data;e.global&&!c.active++&&c.event.trigger("ajaxStart");r=(r=xb.exec(e.url))&...
false;C.onload=C.onreadystatechange=function(){if(!B&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){B=true;b();d();C.onload=C.onreadystatechange=null;z&&C.parentNode&&z.removeChild(C)}}}z.insertBefore(C,z.firstChild);r...
c.lastModified[e.url]);c.etag[e.url]&&x.setRequestHeader("If-None-Match",c.etag[e.url])}r||x.setRequestHeader("X-Requested-With","XMLHttpRequest");x.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._...
d();E=true;if(x)x.onreadystatechange=c.noop}else if(!E&&x&&(x.readyState===4||q==="timeout")){E=true;x.onreadystatechange=c.noop;i=q==="timeout"?"timeout":!c.httpSuccess(x)?"error":e.ifModified&&c.httpNotModified(x,e.url)?"notmodified":"success";var ...
g("abort")}}catch(l){}e.async&&e.timeout>0&&setTimeout(function(){x&&!E&&g("timeout")},e.timeout);try{x.send(n==="POST"||n==="PUT"||n==="DELETE"?e.data:null)}catch(m){c.handleError(e,x,null,m);d()}e.async||g();return x}},handleError:function(a,b,d,f)...
1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),f=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(f)c.etag[b]=f;return a.status===304||a.status===0},httpData:function(a,b,d){...
"json"||!b&&f.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&f.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(i,o){if(c.isArray(o))c.each(o,function(k,n){b||/\[\]$/.test(i)?f(i,n):d(i+"["+(typeof n===...
if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var j in a)d(j,a[j]);return e.join("&").replace(yb,"+")}});var la={},Ab=/toggle|show|hide/,Bb=/^([+-]=)?([\d+-.]+)(.*)$/,W,va=[["height","marginTop","marginBottom","padd...
this[a].style.display=d||"";if(c.css(this[a],"display")==="none"){d=this[a].nodeName;var f;if(la[d])f=la[d];else{var e=c("<"+d+" />").appendTo("body");f=e.css("display");if(f==="none")f="block";e.remove();la[d]=f}c.data(this[a],"olddisplay",f)}}a=0;f...
"olddisplay",c.css(this[a],"display"))}a=0;for(b=this.length;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b){var d=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments)...
animate:function(a,b,d,f){var e=c.speed(b,d,f);if(c.isEmptyObject(a))return this.each(e.complete);return this[e.queue===false?"each":"queue"](function(){var j=c.extend({},e),i,o=this.nodeType===1&&c(this).is(":hidden"),k=this;for(i in a){var n=i.repl...
view all matches for this distribution
view release on metacpan or search on metacpan
t/01-basic-sign.t view on Meta::CPAN
{"hello": "world"}
_EOT
my $default = q{Signature keyId="Test",algorithm="rsa-sha256",signature="ATp0r26dbMIxOopqw0OfABDT7CKMIoENumuruOtarj8n/97Q3htHFYpH8yOSQk3Z5zh8UxUym6FYTb5+A0Nz3NRsXJibnYi7brE/4tx5But9kkFGzG+xpUmimN4c3TMN7OFH//+r8hBf7BT9/GmHDUVZT2JzWGLZES2xDOUuMtA="};
my $all = q{Signature keyId="Test",algorithm="rsa-sha256",headers="request-line host date content-type content-md5 content-length",signature="NSgN91rEJ7F0W2YjD1iT1FawHJVet2VWctBs7o283TSsPA75kCaUVo2JlnbFqJ5mNs0Dx+mexF1kS/7qaDcS4ht5UXvEG+DDB2x75WuTW62Q...
my $private_str = <<_EOT;
-----BEGIN RSA PRIVATE KEY-----
MIICXgIBAAKBgQDCFENGw33yGihy92pDjZQhl0C36rPJj+CvfSC8+q28hxA161QF
NUd13wuCTUcq0Qd2qsBe/2hFyc2DCJJg0h1L78+6Z4UMR7EOcpfdUE9Hf3m/hs+F
UR45uBJeDK1HSFHD8bHKD6kv8FPGfJTotc+2xjJwoYi+1hqp1fIekaxsyQIDAQAB
t/01-basic-sign.t view on Meta::CPAN
my $all_auth = Authen::HTTP::Signature->new(
key => $private_str,
request => $req,
key_id => 'Test',
headers => [qw(request-line host date content-type content-md5 content-length)],
);
my $sign2 = $all_auth->sign();
is($sign2->header('Authorization'), $all, 'all header matches');
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AxKit/App/Gallery/Provider.pm view on Meta::CPAN
<filesize>$filesize</filesize>
<size>$size</size>
<modified>$mod</modified>
<uri>$uri</uri>
<dirpath>$path</dirpath>
<content-type>$ct</content-type>
</image>
</imagesheet>
EOXML
# $r->log_error("Provider returning $xml");
view all matches for this distribution