Copy as Markdown
Other Tools
//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/netwerk/protocol/http/nsIReplacedHttpResponse.idl
//
{static D: &[Interface] = &[
Interface {
name: "nsIReplacedHttpResponse",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* [must_use] void init (); */
Method {
name: "Init",
params: &[],
ret: "::nserror::nsresult",
},
/* [must_use] attribute ACString responseBody; */
Method {
name: "GetResponseBody",
params: &[Param { name: "aResponseBody", ty: "*mut ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
Method {
name: "SetResponseBody",
params: &[Param { name: "aResponseBody", ty: "*const ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* [must_use] attribute unsigned long responseStatus; */
Method {
name: "GetResponseStatus",
params: &[Param { name: "aResponseStatus", ty: "*mut u32" }],
ret: "::nserror::nsresult",
},
Method {
name: "SetResponseStatus",
params: &[Param { name: "aResponseStatus", ty: "u32" }],
ret: "::nserror::nsresult",
},
/* [must_use] attribute ACString responseStatusText; */
Method {
name: "GetResponseStatusText",
params: &[Param { name: "aResponseStatusText", ty: "*mut ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
Method {
name: "SetResponseStatusText",
params: &[Param { name: "aResponseStatusText", ty: "*const ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* [must_use] void visitResponseHeaders (in nsIHttpHeaderVisitor visitor); */
Method {
name: "VisitResponseHeaders",
params: &[Param { name: "visitor", ty: "*const nsIHttpHeaderVisitor" }],
ret: "::nserror::nsresult",
},
/* [must_use] void setResponseHeader (in ACString header, in ACString value, in boolean merge); */
Method {
name: "SetResponseHeader",
params: &[Param { name: "header", ty: "*const ::nsstring::nsACString" }, Param { name: "value", ty: "*const ::nsstring::nsACString" }, Param { name: "merge", ty: "bool" }],
ret: "::nserror::nsresult",
},
]),
},
]; D}