Copy as Markdown

Other Tools

//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/netwerk/protocol/http/nsIBinaryHttp.idl
//
{static D: &[Interface] = &[
Interface {
name: "nsIBinaryHttpRequest",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* readonly attribute ACString method; */
Method {
name: "GetMethod",
params: &[Param { name: "aMethod", ty: "*mut ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute ACString scheme; */
Method {
name: "GetScheme",
params: &[Param { name: "aScheme", ty: "*mut ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute ACString authority; */
Method {
name: "GetAuthority",
params: &[Param { name: "aAuthority", ty: "*mut ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute ACString path; */
Method {
name: "GetPath",
params: &[Param { name: "aPath", ty: "*mut ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute Array<ACString> headerNames; */
Method {
name: "GetHeaderNames",
params: &[Param { name: "aHeaderNames", ty: "*mut thin_vec::ThinVec<::nsstring::nsCString>" }],
ret: "::nserror::nsresult",
},
/* readonly attribute Array<ACString> headerValues; */
Method {
name: "GetHeaderValues",
params: &[Param { name: "aHeaderValues", ty: "*mut thin_vec::ThinVec<::nsstring::nsCString>" }],
ret: "::nserror::nsresult",
},
/* readonly attribute Array<octet> content; */
Method {
name: "GetContent",
params: &[Param { name: "aContent", ty: "*mut thin_vec::ThinVec<u8>" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIBinaryHttpResponse",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* readonly attribute uint16_t status; */
Method {
name: "GetStatus",
params: &[Param { name: "aStatus", ty: "*mut u16" }],
ret: "::nserror::nsresult",
},
/* readonly attribute Array<ACString> headerNames; */
Method {
name: "GetHeaderNames",
params: &[Param { name: "aHeaderNames", ty: "*mut thin_vec::ThinVec<::nsstring::nsCString>" }],
ret: "::nserror::nsresult",
},
/* readonly attribute Array<ACString> headerValues; */
Method {
name: "GetHeaderValues",
params: &[Param { name: "aHeaderValues", ty: "*mut thin_vec::ThinVec<::nsstring::nsCString>" }],
ret: "::nserror::nsresult",
},
/* readonly attribute Array<octet> content; */
Method {
name: "GetContent",
params: &[Param { name: "aContent", ty: "*mut thin_vec::ThinVec<u8>" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIBinaryHttp",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* Array<octet> encodeRequest (in nsIBinaryHttpRequest request); */
Method {
name: "EncodeRequest",
params: &[Param { name: "request", ty: "*const nsIBinaryHttpRequest" }, Param { name: "_retval", ty: "*mut thin_vec::ThinVec<u8>" }],
ret: "::nserror::nsresult",
},
/* nsIBinaryHttpRequest decodeRequest (in Array<octet> request); */
Method {
name: "DecodeRequest",
params: &[Param { name: "request", ty: "*const thin_vec::ThinVec<u8>" }, Param { name: "_retval", ty: "*mut *const nsIBinaryHttpRequest" }],
ret: "::nserror::nsresult",
},
/* nsIBinaryHttpResponse decodeResponse (in Array<octet> response); */
Method {
name: "DecodeResponse",
params: &[Param { name: "response", ty: "*const thin_vec::ThinVec<u8>" }, Param { name: "_retval", ty: "*mut *const nsIBinaryHttpResponse" }],
ret: "::nserror::nsresult",
},
/* Array<octet> encodeResponse (in nsIBinaryHttpResponse response); */
Method {
name: "EncodeResponse",
params: &[Param { name: "response", ty: "*const nsIBinaryHttpResponse" }, Param { name: "_retval", ty: "*mut thin_vec::ThinVec<u8>" }],
ret: "::nserror::nsresult",
},
]),
},
]; D}