buildCtxForRequest

Builds a request context with a request with the given information, and a plain response that's ready to be written to.

  1. HttpRequestContext buildCtxForRequest(Method method, string url, string bodyContent, string contentType)
    buildCtxForRequest
    (,
    string url
    ,,
    string contentType = "text/plain"
    )
  2. HttpRequestContext buildCtxForRequest(Method method, string url)

Parameters

method Method

The request method.

url string

The requested URL, which may include parameters.

bodyContent string

The body of the request. This can be null.

contentType string

The type of the body. This can be null.

Return Value

A request context.