Esempio n. 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;
        }
Esempio n. 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;
        }