Skip to content

Commit 3347d03

Browse files
author
Ivan De Marino
authored
Fixing a few typos on the logging/http-transport webpage (#1018)
1 parent a21509d commit 3347d03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/docs/plugin/sdkv2/logging/http-transport.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: |-
66

77
# HTTP Transport
88

9-
Terraform's public interface has included `helper/logging`: [`NewTransport()`](https://github.com/hashicorp/terraform-plugin-sdk/blob/main/helper/logging/transport.go) since v0.9.5. This helper is an implementation of the Golang standard library [`http.RoundTripper`](https://pkg.go.dev/net/http#RoundTripper) that lets you add logging at the `DEBUG` level to your provider's HTTP transactions.
9+
Terraform's public interface has included `helper/logging` [`NewTransport()`](https://github.com/hashicorp/terraform-plugin-sdk/blob/main/helper/logging/transport.go) since `v0.9.5`. This helper is an implementation of the Golang standard library [`http.RoundTripper`](https://pkg.go.dev/net/http#RoundTripper) that lets you add logging at the `DEBUG` level to your provider's HTTP transactions.
1010

1111
We do not recommend using this original helper because it is designed to log the entirety of each request and response. This includes any sensitive content that may be present in the message header or body, presenting security concerns.
1212

@@ -169,7 +169,7 @@ Each log contains the following information, which is represented as [fields](ht
169169
| `tf_http_req_version` | Request HTTP version | Ex. `"HTTP/1.1"` | Request |
170170
| `tf_http_res_body` | Response body | | Response |
171171
| `tf_http_res_status_code` | Response status code | A canonical [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status) | Response |
172-
| `tf_http_res_status_reason | Response status reason | Canonical textual description of the corresponding `tf_http_res_status_code` | Response |
172+
| `tf_http_res_status_reason` | Response status reason | Canonical textual description of the corresponding `tf_http_res_status_code` | Response |
173173
| `tf_http_res_version` | Response HTTP version | Ex. `"HTTP/2.0"` | Response |
174174
| (Other fields) | Request / Response headers. One field per header. If the header contains a single value, the log field value is set to that value. Otherwise, the field value is a slice of strings. | | Request / Response |
175175

0 commit comments

Comments
 (0)