curl :: CURLCode :: defaultinit
curl :: CURLCode :: failed_init
curl :: CURLCode :: is_valid_init
curl :: CURLCode :: is_valid_protocol
curl :: CURLCode :: unknown_option
curl :: CURLCode :: unsupported_protocol
core :: Pointer :: address_is_null
Is the address behind this Object at NULL?core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Object :: defaultinit
curl :: CURLCode :: defaultinit
core :: Pointer :: defaultinit
curl :: CURLCode :: failed_init
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
curl :: CURLCode :: is_valid_init
curl :: CURLCode :: is_valid_protocol
core :: Object :: native_class_name
The class name of the object in CString format.core :: Pointer :: native_equals
core :: Object :: output_class_name
Display class name on stdout (debug only).core :: Pointer :: premultiply_alpha
Multiply RGB values by their alpha valuecurl :: CURLCode :: unknown_option
curl :: CURLCode :: unsupported_protocol
# CURL Code binding and helpers
extern class CURLCode `{ CURLcode `}
new unknown_option `{ return CURLE_UNKNOWN_OPTION; `}
new unsupported_protocol `{ return CURLE_UNSUPPORTED_PROTOCOL; `}
new ok `{ return CURLE_OK; `}
new failed_init `{ return CURLE_FAILED_INIT; `}
fun code: Int `{ return self; `}
fun is_ok: Bool `{ return self == CURLE_OK; `}
fun is_valid_protocol: Bool `{ return self == CURLE_UNSUPPORTED_PROTOCOL; `}
fun is_valid_init: Bool `{ return self == CURLE_FAILED_INIT; `}
fun to_i: Int do return code end
redef fun to_s import CString.to_s `{
char *c = (char*)curl_easy_strerror(self);
return CString_to_s(c);
`}
end
lib/curl/native_curl.nit:269,1--285,3