HomeSort by relevance Sort by last modified time
    Searched refs:Protocol (Results 1 - 25 of 117) sorted by null

1 2 3 4 5

  /external/chromium_org/third_party/ocmock/OCMock/
OCProtocolMockObject.h 10 Protocol *mockedProtocol;
13 - (id)initWithProtocol:(Protocol *)aProtocol;
OCMockObject.h 19 + (id)mockForProtocol:(Protocol *)aProtocol;
23 + (id)niceMockForProtocol:(Protocol *)aProtocol;
  /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
HttpOverSpdy3Test.java 18 import com.squareup.okhttp.Protocol;
23 super(Protocol.SPDY_3);
HeadersTest.java 19 import com.squareup.okhttp.Protocol;
40 SpdyTransport.readNameValueBlock(headerBlock, Protocol.SPDY_3).request(request).build();
46 assertEquals(Protocol.SPDY_3.name.utf8(), headers.get(OkHeaders.SELECTED_PROTOCOL));
48 assertEquals(Protocol.SPDY_3.name.utf8(), headers.value(0));
66 SpdyTransport.readNameValueBlock(headerBlock, Protocol.SPDY_3).request(request).build();
70 assertEquals(Protocol.SPDY_3.name.utf8(), headers.value(0));
79 Response response = SpdyTransport.readNameValueBlock(headerBlock, Protocol.HTTP_2)
84 assertEquals(Protocol.HTTP_2.name.utf8(), headers.value(0));
96 SpdyTransport.writeNameValueBlock(request, Protocol.SPDY_3, "HTTP/1.1");
121 assertEquals(expected, SpdyTransport.writeNameValueBlock(request, Protocol.SPDY_3, "HTTP/1.1"))
    [all...]
ExternalHttp2Example.java 20 import com.squareup.okhttp.Protocol;
35 .setProtocols(Protocol.HTTP2_AND_HTTP_11).open(url);
49 System.out.println("PROTOCOL " + protocolValues.get(0));
ExternalSpdyExample.java 20 import com.squareup.okhttp.Protocol;
35 .setProtocols(Protocol.SPDY3_AND_HTTP11).open(url);
49 System.out.println("PROTOCOL " + protocolValues.get(0));
HttpOverHttp20Draft09Test.java 18 import com.squareup.okhttp.Protocol;
30 super(Protocol.HTTP_2);
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/
Variant.java 18 import com.squareup.okhttp.Protocol;
22 /** A version and dialect of the framed socket protocol. */
25 /** The protocol as selected using NPN or ALPN. */
26 Protocol getProtocol();
SpdyConnection.java 18 import com.squareup.okhttp.Protocol;
71 /** The protocol variant, like {@link com.squareup.okhttp.internal.spdy.Spdy3}. */
72 final Protocol protocol; field in class:SpdyConnection
127 protocol = builder.protocol;
145 if (protocol == Protocol.HTTP_2) {
147 } else if (protocol == Protocol.SPDY_3)
498 private Protocol protocol = Protocol.SPDY_3; field in class:SpdyConnection.Builder
522 public Builder protocol(Protocol protocol) { method in class:SpdyConnection.Builder
    [all...]
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
Protocol.java 30 * <h3>Protocol vs Scheme</h3>
33 * the protocol (http/1.1, spdy/3.1, etc.). OkHttp uses the word protocol to
36 public enum Protocol {
41 public static final List<Protocol> HTTP2_SPDY3_AND_HTTP =
43 public static final List<Protocol> SPDY3_AND_HTTP11 =
45 public static final List<Protocol> HTTP2_AND_HTTP_11 =
52 * When true the protocol is binary framed and derived from SPDY.
58 Protocol(String name, boolean spdyVariant) {
64 * Returns the protocol matching {@code input} or {@link #HTTP_11} is o
    [all...]
Connection.java 58 * <li>Next Protocol Negotiation (NPN) enables the HTTPS port (443) to be used
186 boolean http2 = route.address.protocols.contains(Protocol.HTTP_2);
187 boolean spdy3 = route.address.protocols.contains(Protocol.SPDY_3);
189 platform.setNpnProtocols(sslSocket, Protocol.HTTP2_SPDY3_AND_HTTP);
192 platform.setNpnProtocols(sslSocket, Protocol.HTTP2_AND_HTTP_11);
195 platform.setNpnProtocols(sslSocket, Protocol.SPDY3_AND_HTTP11);
211 Protocol selectedProtocol = Protocol.HTTP_11;
213 selectedProtocol = Protocol.find(maybeProtocol); // Throws IOE on unknown.
219 .protocol(selectedProtocol).build()
    [all...]
OkHttpClient.java 60 private List<Protocol> protocols;
279 * <p>If unset, protocol redirects will be followed. This is different than
310 * @deprecated OkHttp 1.5 enforces an enumeration of {@link Protocol
316 List<Protocol> protocols = new ArrayList<Protocol>(transports.size());
319 Protocol protocol = Protocol.find(ByteString.encodeUtf8(transports.get(i))); local
320 protocols.add(protocol);
338 * <li><a href="http://www.chromium.org/spdy/spdy-protocol/spdy-protocol-draft3-1">spdy/3.1</a
466 String protocol = url.getProtocol(); local
    [all...]
Address.java 46 final List<Protocol> protocols;
50 OkAuthenticator authenticator, Proxy proxy, List<Protocol> protocols)
111 * {@link Protocol#HTTP_11}.
113 public List<Protocol> getProtocols() {
  /external/chromium_org/device/nfc/
nfc_tag.h 40 enum Protocol {
60 // Called when the underlying NFC protocol has been determined.
61 virtual void TagSupportedProtocolChanged(NfcTag* tag, Protocol protocol) {}
85 // Returns the current tag's supported NFC protocol.
86 virtual Protocol GetSupportedProtocol() const = 0;
nfc_tag_chromeos.cc 33 // Converts an NFC tag protocol value returned by neard to a NfcTag::Protocol
35 NfcTag::Protocol DBusProtocolPropertyToTagProtocol(
36 const std::string& protocol) {
37 if (protocol == nfc_common::kProtocolFelica)
39 if (protocol == nfc_common::kProtocolIsoDep)
41 if (protocol == nfc_common::kProtocolJewel)
43 if (protocol == nfc_common::kProtocolMifare)
45 if (protocol == nfc_common::kProtocolNfcDep)
88 NfcTag::Protocol NfcTagChromeOS::GetSupportedProtocol() const
100 NfcTag::Protocol protocol = GetSupportedProtocol(); local
    [all...]
nfc_tag_chromeos.h 31 virtual device::NfcTag::Protocol GetSupportedProtocol() const OVERRIDE;
  /external/okhttp/android/main/java/com/squareup/okhttp/
HttpsHandler.java 29 private static final List<Protocol> ENABLED_PROTOCOLS = Arrays.asList(Protocol.HTTP_11);
  /external/chromium_org/third_party/ocmock/
ocmock_extensions.h 41 // A constraint for verifying that something conforms to a protocol.
44 Protocol* protocol_;
46 - (id)initWithProtocol:(Protocol*)protocol;
50 + (id)conformsToProtocol:(Protocol*)protocol;
  /external/nist-sip/java/gov/nist/javax/sip/header/
Protocol.java 34 * Protocol name and version.
43 public class Protocol extends SIPObject {
80 /** get the protocol name
87 /** get the protocol version
95 * Get the protocol name + version
109 } else throw new ParseException( "Missing '/' in protocol", 0 );
146 public Protocol() {
153 * $Log: Protocol.java,v $
Via.java 85 protected Protocol sentProtocol;
105 sentProtocol = new Protocol();
124 /** get the Protocol Version
136 * @return Protocol field
138 public Protocol getSentProtocol() {
208 /** set the Protocol Version
213 sentProtocol = new Protocol();
229 * @param s Protocol to set.
231 public void setSentProtocol(Protocol s) {
372 * which transport protocol to use for sending requests and responses t
    [all...]
  /external/okhttp/android/main/java/com/squareup/okhttp/internal/
Platform.java 33 import com.squareup.okhttp.Protocol;
89 // the SCSV cipher is added to signal that a protocol fallback has taken place.
113 * Returns the negotiated protocol, or null if no protocol was negotiated.
144 public void setNpnProtocols(SSLSocket socket, List<Protocol> npnProtocols) {
183 * Concatenation of 8-bit, length prefixed protocol names.
187 static byte[] concatLengthPrefixed(List<Protocol> protocols) {
189 for (Protocol protocol : protocols) {
190 size += protocol.name.size() + 1; // add a byte for 8-bit length prefix
    [all...]
  /external/chromium-trace/trace-viewer/third_party/pywebsocket/src/test/
test_handshake_hybi00.py 53 'Sec-WebSocket-Protocol': 'sample',
68 'Sec-WebSocket-Protocol': 'sample',
76 'HTTP/1.1 101 WebSocket Protocol Handshake\r\n'
81 'Sec-WebSocket-Protocol: sample\r\n'
86 'HTTP/1.1 101 WebSocket Protocol Handshake\r\n'
91 'Sec-WebSocket-Protocol: sample\r\n'
103 'Sec-WebSocket-Protocol': 'sample',
111 'HTTP/1.1 101 WebSocket Protocol Handshake\r\n'
116 'Sec-WebSocket-Protocol: sample\r\n'
121 'HTTP/1.1 101 WebSocket Protocol Handshake\r\n
    [all...]
  /external/okhttp/android/test/java/com/squareup/okhttp/internal/
PlatformTest.java 21 import com.squareup.okhttp.Protocol;
80 List<Protocol> protocols = Arrays.asList(Protocol.SPDY_3);
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
SpdyTransport.java 20 import com.squareup.okhttp.Protocol;
53 /** See http://www.chromium.org/spdy/spdy-protocol/spdy-protocol-draft3-1#TOC-3.2.1-Request. */
117 public static List<Header> writeNameValueBlock(Request request, Protocol protocol,
125 if (Protocol.SPDY_3 == protocol) {
128 } else if (Protocol.HTTP_2 == protocol) {
142 if (isProhibitedHeader(protocol, name)) continue
    [all...]
  /external/okhttp/okcurl/src/main/java/com/squareup/okhttp/curl/
Main.java 25 import com.squareup.okhttp.Protocol;
73 return Joiner.on(", ").join(Lists.transform(Arrays.asList(Protocol.values()),
74 new Function<Protocol, String>() {
75 @Override public String apply(Protocol protocol) {
76 return protocol.name.utf8();
106 @Option(name = { "-i", "--include" }, description = "Include protocol headers in the output")

Completed in 203 milliseconds

1 2 3 4 5