Result:
found more than 754 distributions - search limited to the first 2001 files matching your query
( run in 1.271 )
Mojo-SMTP-Client
view release on metacpan or search on metacpan
lib/Mojo/SMTP/Client.pm view on Meta::CPAN
To => 'you@work.org',
Subject => encode('MIME-Header', decode('utf-8', 'ä¸ç, å´å, 5æ!')),
Data => 'Novosibirsk (Russian: ÐовоÑибиÑÑк; IPA: [nÉvÉsʲɪËbʲirsk]) is the third most populous '.
'city in Russia after Moscow and St. Petersburg and the most populous city in Asian Russia'
);
$msg->attr('content-type.charset' => 'UTF-8');
$smtp->send(
from => 'me@home.org',
to => 'you@work.org',
data => $msg->as_string
view all matches for this distribution
Mojo-Server-AWSLambda
view release on metacpan or search on metacpan
example/lib/Mojo/Server/AWSLambda/Response.pm view on Meta::CPAN
foreach my $header (keys %{$headers}) {
$singleValueHeaders->{lc $header} = $headers->{$header};
push @{$multiValueHeaders->{lc $header} //= []}, $headers->{$header};
}
my $type = $singleValueHeaders->{'content-type'};
my $isBase64Encoded = $type !~ m(^text/.*|application/(:?json|javascript|xml))i;
if ($isBase64Encoded) {
$body = encode_base64 $body, '';
}
else {
view all matches for this distribution
Mojo-Weixin
view release on metacpan or search on metacpan
doc/Weixin.pod view on Meta::CPAN
$client->send_media($friend|$group,"/tmp/test.txt");
#åéurlæå®çæä»¶
$client->send_media($friend|$group,"http://www.example.com/test.jpg");
#é»è®¤æ
åµä¸ï¼ç¨åºä¾é æä»¶æ©å±åæè
urlååºä¸çcontent-typeçä¿¡æ¯æ¥è¯å«åªä½çæ ¼å¼ï¼å¯è½ä¼å¯¼è´è¯å«ä¸åç¡®èå½±ååé
#è¿ç§æ
åµä¸ä½ å¯ä»¥ä¼ éä¸ä¸ªhashçç»æï¼æå¨æå®åªä½çç¸å
³ä¿¡æ¯
$client->send_media($friend|$group,{
media_path => '/tmp/hello.txt', #åªä½è·¯å¾ï¼å¯ä»¥æ¯æ¬å°æä»¶è·¯å¾æè
httpåè®®çurl
media_data => 'hello world', #å¯éï¼ç¨äºç´æ¥åéå
åæ°æ®ï¼ä¼å
级é«äº media_pathï¼
media_mime => 'text/plain', #å¯éï¼é»è®¤æ¯ application/octet-streamï¼ç¨äºæå®
view all matches for this distribution
MojoMojo
view release on metacpan or search on metacpan
lib/MojoMojo/Controller/Attachment.pm view on Meta::CPAN
my $io_file = IO::File->new( $att->filename )
or $c->detach('default');
$io_file->binmode;
$c->res->output( $io_file );
$c->res->header( 'content-type', $att->contenttype );
$c->res->header(
"Content-Disposition" => "inline; filename=" . URI::Escape::uri_escape_utf8( $att->name ) );
$c->res->header( 'Cache-Control', 'max-age=86400, must-revalidate' );
}
lib/MojoMojo/Controller/Attachment.pm view on Meta::CPAN
my $io_file = IO::File->new( $att->thumb_filename )
or $c->detach('default');
$io_file->binmode;
$c->res->output( $io_file );
$c->res->header( 'content-type', $att->contenttype );
$c->res->header( "Content-Disposition" => "inline; filename=" . URI::Escape::uri_escape_utf8( $att->name ) );
$c->res->header( 'Cache-Control', 'max-age=86400, must-revalidate' );
}
lib/MojoMojo/Controller/Attachment.pm view on Meta::CPAN
my $io_file = IO::File->new( $att->inline_filename )
or $c->detach('default');
$io_file->binmode;
$c->res->output( $io_file );
$c->res->header( 'content-type', $c->stash->{att}->contenttype );
$c->res->header(
"Content-Disposition" => "inline; filename=" . URI::Escape::uri_escape_utf8( $c->stash->{att}->name ) );
$c->res->header( 'Cache-Control', 'max-age=86400, must-revalidate' );
}
view all matches for this distribution( run in 1.271 second using v1.01-cache-2.11-cpan-0d8aa00de5b )