Package-level declarations
Types
Encodes and decodes the opaque cursor tokens used by the wire protocol — the cursor envelope's cursor and the pagination envelope's nextCursor.
Declares the fields of a route's request body (DebugRoute.body): the members of a JSON object, or the fields of a form when DebugRoute.acceptsForm is on.
Answers a declared route: DebugRoute.handle sets it. A Kotlin lambda converts to it: handle { call -> ... }.
The options of a whole-number parameter.
The options of a decimal parameter.
The handle of a declared parameter. The handler reads the parameter's value with DebugCall.get: call[param]. T is nullable for an optional parameter.
Declares the query parameters of a route (DebugRoute.query), and is the base of its body fields (DebugRoute.body). Each function adds one parameter and returns its handle, which the handler gives to DebugCall.get.
What a parameter declaration can say about any parameter.
Declares the parameters in a route's path (DebugRoute.path): one for each segment in braces, with the name in the braces. A path parameter is always present, so its value is never null. For the route's own method, a segment that the parameter does not take, such as x for an int, or a value that is not one of DebugStringSpec.values, matches no route: the path names a resource that does not exist, so the client gets 404, not 400. The router checks the method first, so another method gets 405 with an Allow header.
An incoming debug API request handed to DebugTab.handle.
A response produced by a DebugTab and served by the Lustro runtime.
Carries response out of the code of a route to the client. A declared route answers with response when its handler throws this, and so does the server for the DebugTab.handle of any tab, so a helper deep in a handler can end the request with an error, such as throw DebugResponseException(DebugResponse.error("No such file", 404, field = "file")).
The success response of a route, for the OpenAPI document: DebugRoute.response declares it. Its bodies, one for each content type, and its headers are in the order of the declarations.
One route of a tab: its documentation, its parameters, its body, its response, and the handler that answers it. DebugRoutes.get and the other methods of DebugRoutes declare it.
The routes of a tab, as DebugTab.routes declares them. From the declarations, the tab's default DebugTab.handle routes each request, answers 405 for a declared path with another method and 400 with field for a missing or wrong parameter, and calls the route's handler. The tab's default DebugTab.schema returns an OpenAPI document made from the same declarations, so GET /api/v1/_meta lists the tab and the server can name the query parameters that a route does not declare.
The options of a string parameter.
Marks the API that declares a tab's routes: DebugTab.routes, DebugRoutes, and the types that a declaration uses.
Marks API that enables capture of platform HttpURLConnection traffic.
Tells whether a name, such as a JSON key, a query parameter, a header, or a SharedPreferences key, looks like it holds a secret.