Changeset View
Changeset View
Standalone View
Standalone View
swh/core/api/__init__.py
Show All 11 Lines | |||||
import requests | import requests | ||||
import datetime | import datetime | ||||
from flask import Flask, Request, Response, request, abort | from flask import Flask, Request, Response, request, abort | ||||
from .serializers import (decode_response, | from .serializers import (decode_response, | ||||
encode_data_client as encode_data, | encode_data_client as encode_data, | ||||
msgpack_dumps, msgpack_loads, SWHJSONDecoder) | msgpack_dumps, msgpack_loads, SWHJSONDecoder) | ||||
from .negotiate import (Formatter as FormatterBase, | from .negotiation import (Formatter as FormatterBase, | ||||
Negotiator as NegotiatorBase, | Negotiator as NegotiatorBase, | ||||
negotiate as _negotiate) | negotiate as _negotiate) | ||||
logger = logging.getLogger(__name__) | logger = logging.getLogger(__name__) | ||||
# support for content negotation | # support for content negotation | ||||
class Negotiator(NegotiatorBase): | class Negotiator(NegotiatorBase): | ||||
▲ Show 20 Lines • Show All 279 Lines • Show Last 20 Lines |