MCPcopy Create free account
hub / github.com/bajrangCoder/setu / set_method

Method set_method

src/entities/request.rs:191–195  ·  view source on GitHub ↗
(&mut self, method: HttpMethod, cx: &mut Context<Self>)

Source from the content-addressed store, hash-verified

189 }
190
191 pub fn set_method(&mut self, method: HttpMethod, cx: &mut Context<Self>) {
192 self.data.method = method;
193 cx.emit(RequestEvent::MethodChanged);
194 cx.notify();
195 }
196
197 pub fn set_body(&mut self, body: RequestBody, cx: &mut Context<Self>) {
198 self.data.body = body;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected