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)
  2. HttpRequestContext buildCtxForRequest(Method method, string url)
    buildCtxForRequest
    (,
    string url
    )

Parameters

method Method

The request method.

url string

The requested URL.

Return Value

A request context.