HTTP::Promise::Headers::ContentType - Content-Type Header Field
use HTTP::Promise::Headers::ContentType; my $ct = HTTP::Promise::Headers::ContentType->new || die( HTTP::Promise::Headers::ContentType->error, "\n" ); $ct->value( 'text/plain' );
v0.1.0
The following description is taken from Mozilla documentation.
Content-Type: text/html; charset=UTF-8 Content-Type: application/octet-stream Content-Type: multipart/form-data; boundary=something Content-Type: application/x-www-form-urlencoded # Used with 206 Partial Content; rfc7233, section 5.4.1 Content-Type: multipart/byteranges
Returns a string representation of the Content-Type object.
Content-Type
Sets or gets the boundary used for multipart/form-data.
multipart/form-data
If the value is undef, it will be removed.
undef
Sets or gets the charset associated with this Content-Type
Returns a unique auto-generated boundary. Such auto-generated boundary is actually an uuid.
Set or get an arbitrary name-value pair attribute.
Set or get multiple name-value parameters.
Calling this without any parameters, retrieves the associated hash object
Sets or gets the mime-type for this field.
Sets or gets the mime-type for this Content-Type. This is effectively the same as "type"
Jacques Deguest <jack@deguest.jp>
See also rfc7233, section 4.1, rfc7231, section 3.1.1.5 and Mozilla documentation, and this Mozilla documentation too
HTTP::Promise, HTTP::Promise::Request, HTTP::Promise::Response, HTTP::Promise::Message, HTTP::Promise::Entity, HTTP::Promise::Headers, HTTP::Promise::Body, HTTP::Promise::Body::Form, HTTP::Promise::Body::Form::Data, HTTP::Promise::Body::Form::Field, HTTP::Promise::Status, HTTP::Promise::MIME, HTTP::Promise::Parser, HTTP::Promise::IO, HTTP::Promise::Stream, HTTP::Promise::Exception
HTTP::Promise, HTTP::Promise::Headers
Copyright(c) 2022 DEGUEST Pte. Ltd.
All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install HTTP::Promise, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTP::Promise
CPAN shell
perl -MCPAN -e shell install HTTP::Promise
For more information on module installation, please visit the detailed CPAN module installation guide.