Share via


IHttpTelemetryConsumer.OnRequestStart Method

Definition

Called before an HTTP request.

public virtual void OnRequestStart(DateTime timestamp, string scheme, string host, int port, string pathAndQuery, int versionMajor, int versionMinor, System.Net.Http.HttpVersionPolicy versionPolicy);
abstract member OnRequestStart : DateTime * string * string * int * string * int * int * System.Net.Http.HttpVersionPolicy -> unit
override this.OnRequestStart : DateTime * string * string * int * string * int * int * System.Net.Http.HttpVersionPolicy -> unit
Public Overridable Sub OnRequestStart (timestamp As DateTime, scheme As String, host As String, port As Integer, pathAndQuery As String, versionMajor As Integer, versionMinor As Integer, versionPolicy As HttpVersionPolicy)

Parameters

timestamp
DateTime

Timestamp when the event was fired.

scheme
String

Scheme of the request Uri.

host
String

Host of the request Uri.

port
Int32

Port of the request Uri.

pathAndQuery
String

Path and query of the request Uri.

versionMajor
Int32

Major component of the request's HTTP version.

versionMinor
Int32

Minor component of the request's HTTP version.

versionPolicy
HttpVersionPolicy

HttpVersionPolicy of the request.

Applies to