MCPcopy Create free account
hub / github.com/Helidium/Mitol / SetStatusCode

Method SetStatusCode

node/http.h:231–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229 }
230
231 static void SetStatusCode(Local<String> property, Local<Value> value, const PropertyCallbackInfo<void>& info) {
232 MNS::SocketData *data = (MNS::SocketData *) info.Holder()->GetAlignedPointerFromInternalField(0);
233
234 data->response->statusCode = value->Int32Value();
235 }
236
237 static void WriteHead(const FunctionCallbackInfo<Value> &args) {
238 printf("Writing Head\n");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected