tgstation-server 6.12.3
The /tg/station 13 server suite
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Tgstation.Server.Client.IRequestLogger Interface Reference

For logging HTTP requests and responses. More...

Public Member Functions

ValueTask LogRequest (HttpRequestMessage requestMessage, CancellationToken cancellationToken)
 Log a request.
 
ValueTask LogResponse (HttpResponseMessage responseMessage, CancellationToken cancellationToken)
 Log a response.
 

Detailed Description

For logging HTTP requests and responses.

Definition at line 10 of file IRequestLogger.cs.

Member Function Documentation

◆ LogRequest()

ValueTask Tgstation.Server.Client.IRequestLogger.LogRequest ( HttpRequestMessage  requestMessage,
CancellationToken  cancellationToken 
)

Log a request.

Parameters
requestMessageThe HttpRequestMessage representing the request.
cancellationTokenThe CancellationToken for the operation.
Returns
A ValueTask representing the running operation.

◆ LogResponse()

ValueTask Tgstation.Server.Client.IRequestLogger.LogResponse ( HttpResponseMessage  responseMessage,
CancellationToken  cancellationToken 
)

Log a response.

Parameters
responseMessageThe HttpResponseMessage representing the request.
cancellationTokenThe CancellationToken for the operation.
Returns
A ValueTask representing the running operation.

The documentation for this interface was generated from the following file: