MCPcopy Create free account
hub / github.com/saltstack/salt / serialize

Method serialize

salt/netapi/rest_tornado/saltnado.py:554–560  ·  view source on GitHub ↗

Serlialize the output based on the Accept header

(self, data)

Source from the content-addressed store, hash-verified

552 self.finish()
553
554 def serialize(self, data):
555 """
556 Serlialize the output based on the Accept header
557 """
558 self.set_header("Content-Type", self.content_type)
559
560 return self.dumper(data)
561
562 def _form_loader(self, _):
563 """

Callers 5

getMethod · 0.45
postMethod · 0.45
getMethod · 0.45
disbatchMethod · 0.45
postMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected