internal SipRequest(StringSegment headers, StringSegment method, StringSegment uri, StringSegment version, ReadOnlyMemory <byte> body) { Method = method; Uri = uri; Version = version; Body = body; Headers = new SipHeaders(headers); this.headers = headers; }
internal SipResponse(StringSegment headers, StringSegment statusCode, StringSegment reasonPhrase, StringSegment version, ReadOnlyMemory <byte> body) { StatusCode = statusCode; ReasonPhrase = reasonPhrase; Version = version; Body = body; Headers = new SipHeaders(headers); this.headers = headers; }