Пример #1
0
        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;
        }
Пример #2
0
        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;
        }