Skip to main content

Module server

Module server 

Source
Expand description

Requests to a service on the user’s own Hammer sync server, such as languagetool, through hammer_server_request. Hammer sends them as the signed-in user, so the plugin never holds their credentials, and only to the services the manifest names under permissions.hammerServer. languagetool has typed functions for the languagetool service.

Modules§

languagetool
LanguageTool on the user’s sync server: the languagetool service, which forwards to the LanguageTool server its admin set up. The manifest names it under permissions.hammerServer:

Structs§

Response
ServerError

Enums§

ErrorKind
Why a request failed: the first five are from Hammer, before any reply; the rest are what Response::error makes of a reply’s status.

Functions§

request
Sends a request to service, at path under it (such as /v2/check), and waits for its response. method is GET or POST; only Content-Type and Accept headers are sent. A response of any status is Ok.