Skip to content

Allow overriding HTTP client of a Spine Web JavaScript client. #207

@YegorUdovchenko

Description

@YegorUdovchenko

The current version of a Spine Web client for JavaScript provides a high-level API for interacting with a Spine-based backend and carries all HTTP-related functionality. It makes tricky to:

  • add custom HTTP headers, e.g. "Authorization";
  • use non-CORS request mode;
  • expand client to interact with custom backend endpoints (non "/command" or "/query" ) that use similar protocol, e.i. Protobuf request/response body and the same set of auth headers;

To solve above-mentioned issues in Pure Photos we use our custom implementation of HttpClient and inject it after Spine Web client instantiation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Client JSIssues related to the `spine-web-client` libraryenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions