#include <libarc.h>
Public Member Functions | |
Media_Type (const char *mt=0) | |
Constructor. | |
Media_Type (const Media_Type &mt) | |
Copy Constructor. | |
const Media_Type & | operator= (const char *mt) |
const Media_Type & | operator= (const std::string &mt) |
Assignment operator. | |
const char * | Type () const |
Return the Type component of the media type. | |
const char * | Subtype () const |
Return the Sub-type component of the media type. | |
bool | compare (const Media_Type &mt) const |
Compare a media type to this one. |
As described in Section 3.7 of the HTTP 1.1 specification.
|
Constructor. Construct a new Media_Type from the supplied text.
|
|
Copy Constructor. Construct a new Media_Type from the supplied type.
|
|
Compare a media type to this one.
The argument media type is compared to this one using wild-cards:
|
|
Assignment operator. Assign a std::string containing a media type to the media type.
|
|
Assign a null-terminated byte-string containing a media type to the media type.
|
|
Return the Sub-type component of the media type.
|
|
Return the Type component of the media type.
|
Generated on Tue Jun 8 21:30:14 2004 by |