Skip to content

Server mode with HTTP API #6

Description

@dogancanbakir

Expose classification as a local HTTP API:

dit serve --port 8080
curl -X POST http://localhost:8080/classify -d '{"url": "https://example.com/login"}'

Useful for integrating dit into existing pipelines and services without shelling out.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions