Lines Matching refs:or
30 a = @header[key.downcase] or return nil
83 # Returns the default value +args+, or the result of the block, or
99 block_given? or return enum_for(__method__)
110 block_given? or return enum_for(__method__)
123 block_given? or return enum_for(__method__)
132 block_given? or return enum_for(__method__)
163 block_given? or return enum_for(__method__)
177 # HTTP header field, or +nil+ if there is no such header.
194 m = /(\d+)?\s*-\s*(\d+)?/i.match(spec) or
200 raise Net::HTTPHeaderSyntaxError, "last-byte-pos MUST greater than or equal to first-byte-pos but '#{spec}'"
212 # byte-range-set must include at least one byte-range-spec or suffix-byte-range-spec
222 # or a beginning index and a length from that index.
260 # header field, or +nil+ if that field was not provided.
263 len = self['Content-Length'].slice(/\d+/) or
292 m = %r<bytes\s+(\d+)-(\d+)/(\d+|\*)>i.match(self['Content-Range']) or
299 r = content_range() or return nil
322 # or sub-type is not given (e.g. "Content-Type: text").
355 # +params+ should be an Array of Arrays or
377 # +params+ is the form data set; it is an Array of Arrays or a Hash
379 # It is application/x-www-form-urlencoded or multipart/form-data.
388 # +value+:: the value of the field, it should be a String or a File
391 # Each item is a file field or a normal field.
392 # If +value+ is a File object or the +opt+ have a filename key,
434 tokens(@header['connection']).include?('close') or
439 tokens(@header['connection']).include?('keep-alive') or