Skip to content

Commit 6400a59

Browse files
committed
Make an TLS metadata group for HTTP
1 parent c2770b7 commit 6400a59

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

src/endpoints/groups.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ export const httpErrors: EndpointGroup = {
3838
name: 'Errors'
3939
};
4040

41+
export const httpTlsMetadata: EndpointGroup = {
42+
id: 'tls-metadata',
43+
name: 'TLS Metadata'
44+
};
45+
4146
// WebSocket endpoint groups
4247
export const wsMessaging: EndpointGroup = {
4348
id: 'messaging',

src/endpoints/http/tls-client-hello.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
} from 'read-tls-client-hello';
1313

1414
import { HttpEndpoint } from '../http-index.js';
15+
import { httpTlsMetadata } from '../groups.js';
1516
import { getClientHello } from '../../tls-client-hello.js';
1617

1718
function annotateId(id: number, table: Record<number, string | undefined>) {
@@ -109,6 +110,7 @@ export const tlsClientHello: HttpEndpoint = {
109110
meta: {
110111
path: '/tls/client-hello',
111112
description: 'Returns the fully parsed TLS ClientHello. Requires HTTPS.',
112-
examples: ['/tls/client-hello']
113+
examples: ['/tls/client-hello'],
114+
group: httpTlsMetadata
113115
}
114116
};

src/endpoints/http/tls-fingerprint.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { HttpEndpoint } from '../http-index.js';
2+
import { httpTlsMetadata } from '../groups.js';
23
import { getClientHello } from '../../tls-client-hello.js';
34

45
export const tlsFingerprint: HttpEndpoint = {
@@ -27,6 +28,7 @@ export const tlsFingerprint: HttpEndpoint = {
2728
meta: {
2829
path: '/tls/fingerprint',
2930
description: 'Returns the TLS fingerprint (JA3 and JA4) of the client connection. Requires HTTPS.',
30-
examples: ['/tls/fingerprint']
31+
examples: ['/tls/fingerprint'],
32+
group: httpTlsMetadata
3133
}
3234
};

0 commit comments

Comments
 (0)