Top Description Methods
io.micrometer.tracing.http

public Interface HttpResponse

extends Response
Known Direct Subinterfaces
io.micrometer.tracing.http.HttpServerResponse, io.micrometer.tracing.http.HttpClientResponse
Annotations
@Deprecated
Imports
io.micrometer.common.lang.Nullable

Deprecated

scheduled for removal in 1.4.0

This API is taken from OpenZipkin Brave.

Abstract response type used for parsing and sampling. Represents an HTTP response.

Authors
OpenZipkin Brave Authors, Marcin Grzejszczak
Since
1.10.0

Method Summary

Modifier and TypeMethod and Description
public default String

Returns:

an HTTP header or null if not set.
header
(String
header name
header
)

Returns the header value.

public default String

Returns:

an HTTP method
method
()

Returns an HTTP method.

public default HttpRequest
request()

Implements io.micrometer.tracing.http.Response.request.

Deprecated as a consequence of HttpRequest being deprecated.
Returns the HTTP request.
public default String

Returns:

an HTTP route or null if not set
route
()

Returns an expression such as "/items/:itemId" representing an application endpoint, conventionally associated with the tag key "http.route".

public int

Returns:

an HTTP status code or zero if unreadable
statusCode
()

Returns the HTTP status code.

Inherited from io.micrometer.tracing.http.Response:
errorheaderNameskindunwrap

Method Detail

headerback to summary
public default String header(String header)

Returns the header value.

Parameters
header:String

header name

Returns:String

an HTTP header or null if not set.

methodback to summary
public default String method()

Returns an HTTP method.

Returns:String

an HTTP method

Annotations
@Nullable
requestback to summary
public default HttpRequest request()

Implements io.micrometer.tracing.http.Response.request.

Doc from io.micrometer.tracing.http.Response.request.

Deprecated

as a consequence of HttpRequest being deprecated. See corresponding docs for further information.

Returns the HTTP request.

Returns:HttpRequest

corresponding request

Annotations
@Nullable
@Override
routeback to summary
public default String 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. null indicates this instrumentation doesn't understand http routes.

Returns:String

an HTTP route or null if not set

Annotations
@Nullable
statusCodeback to summary
public int statusCode()

Returns the HTTP status code.

Returns:int

an HTTP status code or zero if unreadable