File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -152,18 +152,21 @@ let [<TestCase>] ``Header Transformer``() =
152152 let urlSuffix1 = " suffix1"
153153 let urlSuffix2 = " suffix2"
154154
155- let request =
155+ let httpSpecial =
156156 let transformWith suffix =
157157 fun ( header : Header ) ->
158158 let address = header.target.address.Value
159159 { header with target.address = Some $" {address}{suffix}" }
160-
161160 http {
162- GET url
163161 config_ transformHeader ( transformWith urlSuffix1)
164162 config_ transformHeader ( transformWith urlSuffix2)
165163 }
166164
167- request.header.target.address
165+ httpSpecial {
166+ GET url
167+ }
168+ |> Request.toRequestAndMessage
169+ |> fst
170+ |> _. header.target.address
168171 |> Option.defaultValue " "
169172 |> should equal $" {url}{urlSuffix1}{urlSuffix2}"
You can’t perform that action at this time.
0 commit comments