File size: 298 Bytes
5564ecb
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from typing import Any

from msgspec import json
from starlette.responses import JSONResponse

class MsgSpecJSONResponse(JSONResponse):
    """
    MsgSpec JSON
    """

    def render(self, content: Any) -> bytes:
        return json.encode(content)