-
Notifications
You must be signed in to change notification settings - Fork 0
/
DM.puml
54 lines (46 loc) · 1.06 KB
/
DM.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
@startuml DomainModel
hide empty members
title CHTTP - Domain Model
class HTTPClient {
- address
- port
+ HTTPClient(address, port)
+ HTTPClient(address)
+ HTTPClient(void)
+ HTTPResponse makeRequest(request)
}
class HTTPRequest {
- method
- path
- headers
- body
+ HTTPRequest(method, path, headers, body)
+ HTTPRequest(method, path, headers)
+ HTTPRequest(method, path)
+ HTTPRequest(method)
+ HTTPRequest(void)
+ HTTPRequest setMethod(method)
+ HTTPRequest setPath(path)
+ HTTPRequest setBody(body)
+ HTTPRequest addHeader(key, value)
}
class HTTPResponse {
- statusCode
- statusPhrase
- headers
- body
+ HTTPResponse(statusCode, headers, body)
+ HTTPResponse(statusCode, headers)
+ HTTPResponse(statusCode)
+ HTTPResponse(void)
+ HTTPResponse setStatusCode(statusCode)
+ HTTPResponse setBody(body)
+ HTTPResponse addHeader(key, value)
}
class HTTPMethod {
- method
}
HTTPClient -- HTTPRequest
HTTPClient -- HTTPResponse
HTTPRequest -- HTTPMethod
@enduml