import * as cav from "https://deno.land/x/cav@0.0.24/serial.ts";
Functions
Deserializes a JSON value that was | |
Determines if the object is a plain object or not. This also checks for prototype poisoning; it returns false whenever the prototype of an input object was poisoned before JSON.parsing it. See https://book.hacktricks.xyz/pentesting-web/deserialization/nodejs-proto-prototype-pollution for more information on prototype poisoning. | |
Serializes a new Request, which can then be deserialized using
| |
Serializes a new Response, which can then be deserialized back into the input
body using | |
Serializes a value recursively until it's JSON-compatible. Serializers can be plugged in to extend the accepted types beyond what Cav supports by default. If a value isn't recognized by any of the provided or default serializers, an error will be thrown. | |
Constructs a Serializer. This simply returns the first argument, it's only used for type annotations. | |
Deserializes a Request generated with |
Interfaces
Init options for constructing HttpErrors, which can expose arbitrary data and status codes during de/serialization. | |
Initializer options when creating a Request with | |
Interface for serializing and deserializing arbitrary non-JSON primitive values into JSON. | |
Options for the |
Type Aliases
Type alias representing a Serializer with any input or output type. Useful for type constraints. | |
A group of named Serializer objects. Serializer keys are used to tag serialized values on the output JSON, which is required in order to correctly deserialize the value on the other side. |