class documentation

class ACMEViewResponse(VerticalScroll): (source)

Constructor: ACMEViewResponse(id)

View In Hierarchy

View to display request responses.

Method __init__ Initialize the view.
Method clear Clear the response.
Method compose Compose the view.
Method error Display an error response.
Method success Display a success response.
Instance Variable border_title The border title. Inherited from the parent class.
Instance Variable classes The classes. Inherited from the parent class.
Instance Variable response The response content.
Class Variable _defaultTitle The default title for the view.
Instance Variable _app The application.
def __init__(self, id: str): (source)

Initialize the view.

Parameters
id:strThe view ID.
def clear(self): (source)

Clear the response.

def compose(self) -> ComposeResult: (source)

Compose the view.

Yields
The view content.
def error(self, renderable: RenderableType, rsc: ResponseStatusCode | None = None, title: str | None = 'ERROR'): (source)

Display an error response.

Parameters
renderable:RenderableTypeThe response text.
rsc:ResponseStatusCode | NoneThe response status code. Only used when the response is a string.
title:str | NoneUndocumented
def success(self, renderable: RenderableType, rsc: ResponseStatusCode | None = None): (source)

Display a success response.

Parameters
renderable:RenderableTypeThe response text or renderable.
rsc:ResponseStatusCode | NoneThe response status code.
border_title = (source)

The border title. Inherited from the parent class.

classes: str = (source)

The classes. Inherited from the parent class.

response = (source)

The response content.

_defaultTitle: str = (source)

The default title for the view.

The application.