Interface HttpResponse
- All Superinterfaces:
Response
- All Known Subinterfaces:
HttpClientResponse,HttpServerResponse
This API is taken from OpenZipkin Brave.
Abstract response type used for parsing and sampling. Represents an HTTP response.
- Since:
- 3.0.0
- Author:
- OpenZipkin Brave Authors, Marcin Grzejszczak
-
Method Summary
Methods inherited from interface org.springframework.cloud.sleuth.http.Response
error, headerNames, spanKind, unwrap
-
Method Details
-
request
-
method
- Returns:
- HTTP method
-
route
Returns an expression such as "/items/:itemId" representing an application endpoint, conventionally associated with the tag key "http.route". If no route matched, "" (empty string) is returned.nullindicates this instrumentation doesn't understand http routes.- Returns:
- HTTP route or
nullif not set.
-
statusCode
int statusCode()- Returns:
- The HTTP status code or zero if unreadable.
-
header
- Parameters:
header- header name- Returns:
- HTTP header or
nullif not set.
-