public void RemoveHeader(string header) { for (int i = 0; _headers != null && i < _headers.Count; i++) { AMFHeader amfHeader = _headers[i] as AMFHeader; if (amfHeader.Name == header) { _headers.RemoveAt(i); } } }
private void WriteHeader(AMFHeader header, ObjectEncoding objectEncoding) { base.Reset(); base.WriteUTF(header.Name); base.WriteBoolean(header.MustUnderstand); base.WriteInt32(-1); base.WriteData(objectEncoding, header.Content); }
public AMFHeader GetHeader(string header) { for (int i = 0; _headers != null && i < _headers.Count; i++) { AMFHeader amfHeader = _headers[i] as AMFHeader; if (amfHeader.Name == header) { return(amfHeader); } } return(null); }
public void AddHeader(AMFHeader header) { _headers.Add(header); }