TsgcWSAPIServer_WebAuthn › 이벤트 › OnWebAuthnHTTPResponse
서버가 WebAuthn 엔드포인트에 대한 HTTP 응답을 빌드한 후 전송되기 전에 발생합니다. 나가는 페이로드와 헤더를 감사하거나 꾸미는 데 유용합니다.
property OnWebAuthnHTTPResponse: TsgcWebAuthnOnHTTPResponse;
// TsgcWebAuthnOnHTTPResponse = procedure(Sender: TObject; aMethod: TsgcWebAuthnHTTPRequestMethod; const aRequest: TsgcHTTPRequest; const aResponse: TsgcHTTPResponse) of object
—
OnWebAuthnHTTPRequest의 동반 이벤트입니다. 응답이 최종 aResponse(상태 코드, 헤더 및 본문)와 함께 서버를 떠나기 직전에, 원본 aRequest 및 엔드포인트를 식별하는 aMethod와 쌍을 이루어 발생합니다. 일반적인 용도는 액세스 로깅, 메트릭, 사용자 지정 보안 헤더 추가 또는 응답을 audit trail에 작성하는 것입니다.
procedure TForm1.sgcWSAPIServer_WebAuthn1WebAuthnHTTPResponse(Sender: TObject;
aMethod: TsgcWebAuthnHTTPRequestMethod; const aRequest: TsgcHTTPRequest;
const aResponse: TsgcHTTPResponse);
begin
Memo1.Lines.Add(Format('WebAuthn %d %s', [aResponse.ResponseCode, aRequest.URI]));
end;