Skip to content

Commit

Permalink
Add path to ReflectedResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
cak committed Mar 11, 2020
1 parent 4f5b46d commit cf577d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/kotlin/ReflectListener.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ data class ReflectedResponse(
val dateTime: String,
val host: String,
val url: URI?,
val path: String,
val method: String,
val statusCode: Int,
val title: String,
Expand Down Expand Up @@ -44,6 +45,7 @@ class ReflectListener(private val reflectPanel: ReflectPanel) : HttpSenderListen
dateTime = dateTime,
host = msg.requestHeader?.uri?.host ?: "",
url = msg.requestHeader?.uri,
path = msg.requestHeader.uri.path,
method = msg.requestHeader?.method ?: "",
statusCode = msg.responseHeader.statusCode,
title = getTitle(responseBody),
Expand Down

0 comments on commit cf577d2

Please sign in to comment.